Since version 1.12.0
, you can use the --exit-code-from
option.
From documentation:
–exit-code-from SERVICE
Return the exit code of the selected service container. Implies –abort-on-container-exit.
More Related Contents:
- Docker Compose wait for container X before starting Y
- How to fix docker: Got permission denied issue
- What is the difference between docker-compose ports vs expose
- How to mount a single file in a volume
- Docker Compose – Share named volume between multiple containers
- Access docker container from host using containers name
- Provide static IP to docker containers via docker-compose
- Docker-Compose persistent data MySQL
- How to get docker-compose to always re-create containers from fresh images?
- How to set a path on host for a named volume in docker-compose.yml
- Docker COPY from ubuntu absolute path
- Docker Compose – How to execute multiple commands?
- What is the difference between ports and expose in docker-compose?
- How to mount local volumes in docker machine
- An error, “failed to solve with frontend dockerfile.v0”
- Difference between links and depends_on in docker_compose.yml
- What is the alternative to condition form of depends_on in docker-compose Version 3?
- Docker Compose keep container running
- How to pass ARG value to ENTRYPOINT?
- How can I use environment variables in docker-compose?
- How to tag docker image with docker-compose
- how do you manage secret values with docker-compose v3.1?
- docker-compose: difference between networks and links
- How to directly mount NFS share/volume in container using docker compose v3
- Substitute environment variables in NGINX config from docker-compose
- Connect to another container using Docker compose
- Build a single image based on docker compose containers
- How to define build-args in docker-compose?
- What is the purpose of the file “docker.sock”?
- How to stop all containers when one container stops with docker-compose?