Skip to content

Commit

Permalink
node, syscontainer: umount everything under /var/lib/docker/containers
Browse files Browse the repository at this point in the history
Do not leave any mount point busy under /var/lib/docker/containers

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Jul 11, 2017
1 parent a21e5a9 commit 6543e72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/node/system-container/system-container-wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/sh
source /run/$NAME-env

UMOUNT_TARGET=/var/lib/docker/containers

findmnt -R -A -nuo TARGET --raw $UMOUNT_TARGET | tr -d '\r' | grep -v "^$UMOUNT_TARGET$" | \
while read i;
do
umount -lR $i
done

exec /usr/local/bin/origin-node-run.sh

0 comments on commit 6543e72

Please sign in to comment.