Added --force-rm to compose build.
It's a flag passed to docker build that removes the intermediate containers left behind on fail builds. Signed-off-by: Adrian Budau <budau.adi@gmail.com>
This commit is contained in:
parent
8fb44db92b
commit
4c2eb17ccd
10 changed files with 48 additions and 5 deletions
7
tests/fixtures/simple-failing-dockerfile/Dockerfile
vendored
Normal file
7
tests/fixtures/simple-failing-dockerfile/Dockerfile
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
FROM busybox:latest
|
||||
LABEL com.docker.compose.test_image=true
|
||||
LABEL com.docker.compose.test_failing_image=true
|
||||
# With the following label the container wil be cleaned up automatically
|
||||
# Must be kept in sync with LABEL_PROJECT from compose/const.py
|
||||
LABEL com.docker.compose.project=composetest
|
||||
RUN exit 1
|
||||
2
tests/fixtures/simple-failing-dockerfile/docker-compose.yml
vendored
Normal file
2
tests/fixtures/simple-failing-dockerfile/docker-compose.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
simple:
|
||||
build: .
|
||||
Loading…
Add table
Add a link
Reference in a new issue