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


php,docker,dlaravel

A brief introduction to the phpenv container environment I built

I don't have time to shoot an introduction video, so I'll just grab some pictures and introduce the container environment deviny/phpenv I use. https://github.com/DevinY/phpenvphpenv can be regarded as an evolutionary version of my previous D-Laravel open source project, conceptually extending the use of many Dlaravel operation methods. The update of the container tends to be controlled by the user to build his own image, so I am not very good at changing the version number. In fact, the php version number of D-Laravel seems to have not been changed for a long time:p

docker

Update docker-compose version with bash

Install the latest version of docker-compose

polymer,docker

D-Laravel supports index.html by default

D-Laravel's nginx environment settings support index.html by default, simply put Now, besides, D-Laravel can be used to run Laravel's Project, and it can also be used to run other Projects. Currently Apple's WebKit is already in preview for Service-Workers....