Ian Campbell 307f13b129 Defer dockerRm until we are finished with the contents
This was introduced by #191 but somehow did not trigger either for me in local
testing or in CI.

It did trigger in initial CI of https://github.com/linuxkit/linuxkit/pull/2811
which can be seen at https://linuxkit.datakit.ci/linuxkit/linuxkit/pr/2811?history=1637690296123e9a15307b3a41b290da6e27e7cc
The error is:

    Failed to docker rm container «...»: «...»: aufs: unmount error after retries: «...»: device or resource busy

No doubt because we were still holding an open fd while trying to remove the
container.

Unclear why this didn't repro for me (docker 17.11.0-ce with overlay2) or
whatever CI uses.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-12-13 11:44:32 +00:00
2017-11-18 22:22:33 +01:00
2017-07-14 11:50:51 +01:00
2017-10-17 17:30:47 -04:00
2017-04-24 23:08:30 +01:00
2017-04-24 23:08:30 +01:00
2017-11-14 12:16:54 -05:00
Description
A toolkit for building secure, portable and lean operating systems for containers
241 MiB
Languages
Go 48.3%
text 21.3%
Shell 14%
Dockerfile 5.7%
OCaml 4.6%
Other 6.1%