Skip to content

Instantly share code, notes, and snippets.

@adamelliotfields
Last active November 14, 2019 00:01
Show Gist options
  • Save adamelliotfields/8c3f09ecbecf83316de38ce62141073f to your computer and use it in GitHub Desktop.
Save adamelliotfields/8c3f09ecbecf83316de38ce62141073f to your computer and use it in GitHub Desktop.
Access /var/lib/docker on Mac
#!/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
@adamelliotfields
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment