Browse Source

hack: unmount leftover daemon root folders

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 13df617d4cc98fe31f3ded78902119a1c1505005)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Tibor Vass 6 years ago
parent
commit
78207d5380
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hack/make/.integration-daemon-stop

+ 2 - 0
hack/make/.integration-daemon-stop

@@ -10,6 +10,8 @@ if [ ! "$(go env GOOS)" = 'windows' ]; then
 		if ! wait "$pid"; then
 		if ! wait "$pid"; then
 			echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code"
 			echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code"
 		fi
 		fi
+		root=$(dirname "$pidFile")/root
+		umount "$root" || true
 	done
 	done
 
 
 	if [ -z "$DOCKER_TEST_HOST" ]; then
 	if [ -z "$DOCKER_TEST_HOST" ]; then