Skip to content

Commit

Permalink
Merge pull request #411 from marcus-h/docker_colon
Browse files Browse the repository at this point in the history
Use docker --mount instead of --volume
  • Loading branch information
mlschroe committed May 3, 2018
2 parents 782262c + d1ca307 commit 92a391f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-vm-docker
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ vm_startup_docker() {
docker rm "$name" >/dev/null 2>&1 || true
docker run \
--rm --name "$name" --cap-add=sys_admin --cap-add=MKNOD --net=none \
-v "$BUILD_ROOT:/mnt" busybox /bin/chroot /mnt "$vm_init_script"
--mount "type=volume,source=$BUILD_ROOT,destination=/mnt" busybox /bin/chroot /mnt "$vm_init_script"
BUILDSTATUS="$?"
test "$BUILDSTATUS" != 255 || BUILDSTATUS=3
cleanup_and_exit "$BUILDSTATUS"
Expand Down

0 comments on commit 92a391f

Please sign in to comment.