I’m using docker build to compile software and tag the final image, ready to run later.
docker build completes successfully the container the build ran in is removed - that seems to be the right thing to do.
When the compile fails and the
docker build does not complete then the container is left - that seems to be the wrong thing to do.
Is there a specific reason why the container is left? It seems pointless, but perhaps I’m missing something.
I think this is especially pertinent since ^C during a
docker build now stops and removes the container.
$ docker version Client: Version: 1.12.0-rc4 API version: 1.24 Go version: go1.6.2 Git commit: e4a0dbc Built: Wed Jul 13 03:28:51 2016 OS/Arch: darwin/amd64 Experimental: true Server: Version: 1.12.0-rc4 API version: 1.24 Go version: go1.6.2 Git commit: e4a0dbc Built: Wed Jul 13 03:28:51 2016 OS/Arch: linux/amd64 Experimental: true