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


openai,flax,docker

Use the container to run OpenAI's official teaching Python (Flax)

If you log in to the openai website, you can see the official teaching instructions herehttps://beta.openai.com/docs/quickstart/build-your-applicationAPI的KEY的申請, there is a button at the bottom of this page + Create new secret key This article teaches you to use Docker to run the official OpenAI execution environment.

docker

Update docker-compose version with bash

Install the latest version of docker-compose

docker,cli

Docker container formatted display

I think if you want to write some automation functions, it may be useful to be able to format the output container content. The following are some reference examples of Docker container formatting and display instructions