Last active
November 14, 2019 00:01
-
-
Save adamelliotfields/8c3f09ecbecf83316de38ce62141073f to your computer and use it in GitHub Desktop.
Access /var/lib/docker on Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
docker run \ | |
-it \ | |
-v /var/lib/docker:/var/lib/docker \ | |
-w /var/lib/docker \ | |
--rm \ | |
--name=debian \ | |
debian:buster-slim \ | |
/bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you bind mount a file or folder in Docker for Mac, you're actually bind mounting a location in the VM that Docker is running on.