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 laravel

Chatting about D-Laravel's console commands

D-Laravel's console command allows us to quickly understand what he executes. How is it executed if docker-compose is used? Let's see.

fastapi,phpenv,docker

How do I create a fastapi runtime environment with phpenv

phpenv php laravel runs HAProxy, and automatically applies for and updates free certification, now let him run Python's fastapi. There is no limit to phpenv, the limit is your idea.😆

docker,git

Use docker-compose to quickly build a private git service

How to quickly set up an out-of-the-box Gogs environment? This article introduces the use of docker-compose.yml to quickly establish a gogs environment.