Screen ~/Library/Containers//Data/vms/0/tty We need to “screen into” the Docker driver by executing a command:.There’s a terminal application called `screen` that’s going to help us. In order to accomplish this, we need to use a serial terminal on Mac. So, to access persistent volumes created by Docker for Mac, you need to log in that hidden virtual machine first, which is not that straightforward. Docker for Mac runs a virtual machine behind the scenes and hides it from you to make things simpler. You see, your Mac machine isn’t a real Docker host. Try to cd /var/lib/docker/volumes from your MacOS terminal, and you’ll get nothing. However, that’s not the case when you use Docker for Mac. If your docker host is Linux, that’s not a problem you can find Docker volumes by /var/lib/docker/volumes path. If you use persistent data volumes in Docker, you might want to access them via command-line.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |