Loading

docker volume 共享本地目录

docker volume create myvol

docker volume inspect myvol


[
    {
        "CreatedAt": "2020-04-19T01:36:22+08:00",
        "Driver": "local",
        "Labels": {},
        "Mountpoint": "/var/lib/docker/volumes/myvol/_data",
        "Name": "mssql2019",
        "Options": {},
        "Scope": "local"
    }
]

解决方式是通过 ln 创建软链接

 

ln -s /var/lib/docker/volumes/myvol/_data/* /data/

 cd /data

 ls

posted @ 2020-04-19 12:51  microestc  阅读(1817)  评论(0编辑  收藏  举报