Mounting docker directory failed for fuse-overlayfs.

This commit is contained in:
Tom Alexander 2022-01-30 18:41:30 -05:00
parent e99bac43b5
commit 8b1169a684
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -4,6 +4,10 @@ set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
: ${DOCKERDIR:="$DIR/docker"}
mkdir -p "$DOCKERDIR"
function cleanup {
for dev in "${devices[@]}"; do
echo "Deleting $dev"
@ -43,6 +47,7 @@ bhyve \
-s 4:0,virtio-blk,/vm/docker/disk0.img \
-s 5:0,virtio-net,tap1,mac=58:9c:fc:09:c3:ba \
-s 6:0,virtio-rnd \
-s "7:0,virtio-9p,docker=$DOCKERDIR" \
-l com1,stdio \
docker
bhyve_status=$?