Shared Volume in Docker through Vagrant

前端 未结 3 1411
独厮守ぢ
独厮守ぢ 2021-02-06 02:13

I have a Vagrant virtualbox which hosts a Docker container. The host machine has a folder which needs to be accessible in the vm and the container:

Host: /host/p         


        
3条回答
  •  遥遥无期
    2021-02-06 02:38

    I can confirm I have the same issues regarding reboots that do not run the provisioning. This happens because when the docker daemon is brought up after a reboot, the synced folder source is still empty (that is, the folder syncing phase runs after docker is launched at startup). Another option I found is to simply restart the docker service in the host with sudo service docker restart.

提交回复
热议问题