Docker in Docker cannot mount volume

前端 未结 10 1853
情话喂你
情话喂你 2020-11-29 21:09

I am running a Jenkins cluster where in the Master and Slave, both are running as a Docker containers.

The Host is latest boot2docker VM running on MacOS.

T

10条回答
  •  醉酒成梦
    2020-11-29 21:35

    Regarding your use case related to Jenkins, you can simply fake the path by creating a symlink on the host:

    ln -s $HOST_JENKINS_DATA_DIRECTORY/jenkins_data /var/jenkins_home
    

提交回复
热议问题