首页 文章

在docker容器中挂载VirtualBox共享文件夹

提问于
浏览
0

我有一个运行Ubuntu Server 17.04的VirtualBox Guest OS,它安装了docker-ce . 我有一些安装在客户操作系统内的共享文件夹但是当我用--volume命令将它们传递给docker容器时,我看不到它们内部的任何内容 . 我在这里做错了吗?

sudo docker create --name=plex -v /home/kunal/media/:/media plexinc/pms-docker

1 回答

  • 1

    我've seen an issue before (it may have since been fixed) where docker detects all the mounted filesystems on the host when the daemon starts. If you changed mounted filesystems after starting the daemon, it wouldn't看到那些用于卷安装的文件系统 . 解决方法是在进行任何文件系统更改后退回docker守护程序(例如 sudo systemctl restart docker ) . 您可能还想尝试更新版本的docker,看看问题是否已经修复 .

相关问题