windows下docker 挂载数据卷报错 Error response from daemon: user declined directory sharing

dockerDesktop for windows
执行一下:

docker run --rm -v /D/code/go/imoocwfw/php521:/D/code/go/imoocwfw/php521 -w /D/code/go/imoocwfw/php521 -e ICODE=wwwz88jcom  cap1573/cap-micro new git.imooc.com/php521/category

挂载数据卷的时候,docker报错: Error response from daemon: user declined directory sharing D:\img

说是没权限,被拒绝,去dockerDesktop里面设置看看

把相关的目录添加到配置里面,即可

windows下docker 挂载数据卷报错 Error response from daemon: user declined directory sharing

原创文章,作者:星辰,如若转载,请注明出处:http://www.z88j.com/39269.html

(8)
打赏 微信扫一扫 微信扫一扫
上一篇 2022年2月8日 下午9:17
下一篇 2022年2月10日 下午4:58

相关推荐

发表回复

登录后才能评论

Warning: error_log(/www/wwwroot/www.z88j.com/wp-content/plugins/spider-analyser/#log/log-3018.txt): failed to open stream: No such file or directory in /www/wwwroot/www.z88j.com/wp-content/plugins/spider-analyser/spider.class.php on line 2900