Reputation: 149
I have a VirtualBox Guest OS running Ubuntu Server 17.04 which has docker-ce installed. I have some shared folders that are mounted inside the Guest OS but when I pass them to the docker container with a --volume command I can't see any content inside them. Am I doing something wrong here?
sudo docker create --name=plex -v /home/kunal/media/:/media plexinc/pms-docker
Upvotes: 3
Views: 2682
Reputation: 265085
I'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 see those filesystems for volume mounts. The workaround is to just bounce the docker daemon (e.g. sudo systemctl restart docker
) after making any filesystem changes. You may also want to try newer versions of docker to see if the issue has since been fixed.
Upvotes: 1