The command
clause does work as @Karthik says.
As a simple example, the following service will have a -inMemory
added to its ENTRYPOINT
when docker-compose up
is run.
version: '2'
services:
local-dynamo:
build: local-dynamo
image: spud/dynamo
command: -inMemory
More Related Contents:
- Docker-compose named mounted volume
- How to upgrade docker-compose to latest version
- Speed up docker-compose shutdown
- Communication between multiple docker-compose projects
- Docker-compose: node_modules not present in a volume after npm install succeeds
- Using Docker-Compose, how to execute multiple commands
- How do you perform Django database migrations when using Docker-Compose?
- Docker Compose – Share named volume between multiple containers
- How to create a DB for MongoDB container on start up?
- Docker : Can a container A call an executable located on an other container B?
- React app exiting in docker container with exit code 0
- Django connection to postgres by docker-compose
- Flask CLI throws ‘OSError: [Errno 8] Exec format error’ when run through docker-compose
- Docker app server ip address 127.0.0.1 difference of 0.0.0.0 ip
- How do I mount a host directory as a volume in docker compose
- Re-using environment variables in docker-compose.yml
- How to use the host network, and any other user-defined network together in Docker-Compose?
- Why the “none” image appears in Docker and how can we avoid it
- Connect to Kafka on host from Docker (ksqlDB)
- How to pass ARG value to ENTRYPOINT?
- How can I use environment variables in docker-compose?
- How to pass arguments to a Dockerfile?
- How to tag docker image with docker-compose
- Pass argument to docker compose
- Docker-compose exit code is 137 when there is no OOM exception
- Docker 1.10 access a container by its hostname from a host machine
- Docker-compose with django could not translate host name “db” to address: Name or service not known
- docker-compose up and user inputs on stdin
- Spring Docker container cannot access Postgres Docker container
- Difference between “docker compose” and “docker-compose”