Jelajahi Sumber

Merge pull request #8121 from bbinet/cleanup-hello-world-container

Automatically clean up hello-world container with --rm
Tibor Vass 10 tahun lalu
induk
melakukan
3c03506cc2
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      hack/install.sh

+ 2 - 2
hack/install.sh

@@ -85,7 +85,7 @@ case "$lsb_dist" in
 		if command_exists docker && [ -e /var/run/docker.sock ]; then
 		if command_exists docker && [ -e /var/run/docker.sock ]; then
 			(
 			(
 				set -x
 				set -x
-				$sh_c 'docker run hello-world'
+				$sh_c 'docker run --rm hello-world'
 			) || true
 			) || true
 		fi
 		fi
 		your_user=your-user
 		your_user=your-user
@@ -162,7 +162,7 @@ case "$lsb_dist" in
 		if command_exists docker && [ -e /var/run/docker.sock ]; then
 		if command_exists docker && [ -e /var/run/docker.sock ]; then
 			(
 			(
 				set -x
 				set -x
-				$sh_c 'docker run hello-world'
+				$sh_c 'docker run --rm hello-world'
 			) || true
 			) || true
 		fi
 		fi
 		your_user=your-user
 		your_user=your-user