Getting exit code out of docker-compose up
问题 I have an issue getting an exit code out of docker-compose up . I have the simplest container that runs a script that always exits with 1: #!/usr/bin/env sh exit 1 My Dockerfile: FROM mhart/alpine-node:6 RUN mkdir /app WORKDIR /app And my docker-compose.yml: version: '2' services: test_container: container_name: test_container build: . volumes: - ${PWD}/run.sh:/app/run.sh entrypoint: ["/app/run.sh"] When I run it with docker-compose -f docker-compose.yml up --force-recreate test_container I