docker: Error response from daemon ...Unhandle exception:Filesharing has been cancelled..

docker: Error response from daemon …Unhandle exception:Filesharing has been cancelled…

背景

Win10 下通过 docker (安装命令如下)安装 Jenkins,报错,详见下图。

docker run -p 8080:8080 -p 50000:5000 --name jenkins \
-u root \
-v E:\docker_file\jenkins_home:/var/jenkins_home \
-d jenkins/jenkins:lts

docker: Error response from daemon ...Unhandle exception:Filesharing has been cancelled.._第1张图片

解决方案

查阅得知,可能是未分配权限导致。

打开docker->setting->resources->file sharing,设置对应文件夹权限,重启。

docker: Error response from daemon ...Unhandle exception:Filesharing has been cancelled.._第2张图片

重新运行命名,成功。

docker: Error response from daemon ...Unhandle exception:Filesharing has been cancelled.._第3张图片

你可能感兴趣的:(Java,docker,Jenkins)