Hello World

Be Happy!

docker volumes local path


$ docker volume ls
DRIVER              VOLUME NAME
local               redmine-docker_postgresql_data
local               redmine-docker_redmine_data
$ docker volume inspect redmine-docker_redmine_data
[
    {
        "CreatedAt": "2019-11-14T23:05:56Z",
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/redmine-docker_redmine_data/_data",
        "Name": "redmine-docker_redmine_data",
        "Options": null,
        "Scope": "local"
    }
]
$ ls /var/lib/docker/volumes/redmine-docker_redmine_data/_data
ls: /var/lib/docker/volumes/redmine-docker_redmine_data/_data: No such file or directory

$ docker run --rm -it -v /:/vm-root alpine:edge ls -l /vm-root
Unable to find image 'alpine:edge' locally
edge: Pulling from library/alpine
8c15e203d0eb: Pull complete 
Digest: sha256:2f0fcd44f200bb1c0ddaed7370f042e66df1b7106c081285ad894e2fb9ba5bd2
Status: Downloaded newer image for alpine:edge
total 8492
drwxr-xr-x    7 root     root           224 Oct 24  2018 Users
drwxr-xr-x    3 root     root            96 Nov 14 19:59 Volumes
drwxr-xr-x    2 root     root         14336 Aug  7 12:01 bin
drwxr-xr-x   11 root     root          2960 Nov 11 16:49 dev
drwxr-xr-x    1 root     root           180 Nov 11 16:49 etc
drwxr-xr-x    2 root     root          2048 Aug  7 12:01 home
drwxr-xr-x    1 root     root            60 Nov 11 16:49 lib
drwxr-xr-x    5 root     root          2048 Aug  7 12:01 media
drwxr-xr-x    3 root     root            96 Sep  6 23:18 mnt
drwxr-xr-x    1 root     root            80 Nov 11 16:49 opt
drwxr-xr-x    6 root     root           192 Oct 24  2018 private
dr-xr-xr-x  224 root     root             0 Nov 11 16:49 proc
drwx------    2 root     root          2048 Aug  7 13:33 root
drwxr-xr-x    1 root     root           120 Nov 11 16:49 run
drwxr-xr-x    2 root     root         30720 Aug  7 12:01 sbin
-rwxr-xr-x    1 root     root       8640280 Aug  7 13:34 sendtohost
drwxr-xr-x    2 root     root          2048 Aug  7 12:01 srv
dr-xr-xr-x   13 root     root             0 Nov 11 16:49 sys
drwxrwxrwt   14 root     root           448 Nov 14 23:12 tmp
drwxr-xr-x    1 root     root            80 Aug  7 12:01 usr
drwxr-xr-x   13 root     root          2048 Aug  7 13:33 var

$ docker run --rm -it -v /:/vm-root alpine:edge ls -l /vm-root/var/lib/docker/volumes/redmine-docker_redmine_data/_data/redmine
total 16
drwxr-xr-x    2 root     root          4096 Nov 14 23:05 conf
drwxrwxr-x    2 1000     1001          4096 Nov 14 23:05 files
drwxr-xr-x    2 1000     root          4096 Nov 14 23:05 plugins
drwxr-xr-x    3 root     root          4096 Nov 14 23:05 public
 

#docker (20)
List