Skip to content

Commit

Permalink
Merge pull request moby#2349 from tonistiigi/shell-workdir
Browse files Browse the repository at this point in the history
hack: allow mounting in workdir in shell
  • Loading branch information
AkihiroSuda committed Sep 8, 2021
2 parents ea773f6 + 9c67257 commit 91d2f2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/shell
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ SSH=
if [ -n "$MOUNT_SSH_AUTH_SOCK" ]; then
SSH="-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK"
fi
docker run $SSH -it --privileged -v /tmp --net=host -e BUILDKIT_REGISTRY_MIRROR_DIR=/root/.cache/registry --rm $(cat $iidfile)

volumes=
if [ -n "$MOUNT_BUILDKIT_SOURCE" ]; then
volumes="-v $(pwd):/src"
fi

set -x
docker run $SSH $volumes -it --privileged -v /tmp --net=host -e BUILDKIT_REGISTRY_MIRROR_DIR=/root/.cache/registry --rm $(cat $iidfile)

0 comments on commit 91d2f2d

Please sign in to comment.