mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-11 12:56:14 +00:00
Add || true to the docker rmi invocations in the clean target
Linux xargs calls the command with no arguments if it gets no inputs, which `docker rmi` complains about. It provides -r / --no-run-if-empty to prevent this but unfortunately this isn't supported on OSX. Ignore errors from `docker rmi` so that `make clean` will keep going and clean up later stuff. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -27,5 +27,5 @@ qemu-arm: Dockerfile.qemu.armhf arm
|
||||
clean:
|
||||
$(MAKE) -C alpine clean
|
||||
$(MAKE) -C xhyve clean
|
||||
docker images -q mobyqemu:build | xargs docker rmi -f
|
||||
docker images -q justincormack/remora | xargs docker rmi -f
|
||||
docker images -q mobyqemu:build | xargs docker rmi -f || true
|
||||
docker images -q justincormack/remora | xargs docker rmi -f || true
|
||||
|
||||
Reference in New Issue
Block a user