Skip to content

Instantly share code, notes, and snippets.

@bibarsov
Created April 15, 2020 18:09
Show Gist options
  • Save bibarsov/65d81deb0d41e00f62a0d36171cbaa93 to your computer and use it in GitHub Desktop.
Save bibarsov/65d81deb0d41e00f62a0d36171cbaa93 to your computer and use it in GitHub Desktop.
# Create
docker volume create vol
# Run via volume
docker run ... --mount source=vol,destination=/usr/share/nginx/html ...
# cd into volume folder (osX)
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
[Enter]
cd /var/lib/docker/volumes/vol
# Kill screen window
Ctrl-a k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment