by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

We can use
docker volume ls
List all dossiers.
When using inspect on OSx to view, as a result, we can't find the Mountpoint directory when we get to the Mac?
docker volume inspect neip_www
[
    {
        "CreatedAt": "2018-05-12T15:30:17Z",
        "Driver": "local",
        "Labels": {
            "com.docker.stack.namespace": "neip"
        },
        "Mountpoint": "/var/lib/docker/volumes/neip_www/_data",
        "Name": "neip_www",
        "Options": null,
        "Scope": "local"
    }
]
This is because actually the directory is on the Docker for Mac VM.
We can connect to the VM through the screen command
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
available through
Ctrl-a k to leave.
Ctrl-a d to background.
screen -r lists background ttys.
screen -r [number] reconnect


 

Tags: docker

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker

Update docker-compose version with bash

Install the latest version of docker-compose

docker

Install docker-compose on ubuntu

Briefly introduce how I installed docker-compose on ubuntu. Quite easy.

docker,phpenv

Unable to ping host.docker.internal on Linux

You can check with docker version, confirm that the version is Docker v20.10+, you can add extra_hosts as follows: