获得徽章 0
- 如果docker运行容器的时候出现以下错误:
Error response from daemon: Cannot restart container <container_id>: error creating overlay mount to /var/lib/docker/overlay2/*************/merged: invalid argument
解决:
可以到 cd /var/lib/docker/containers/<container_id>/ 该路径,查看 cat config.v2.json 文件,看是否有下面两个选项
"MountLabel":"system_u:object_r:svirt_sandbox_file_t:s0:c823,c855",
"ProcessLabel":"system_u:system_r:svirt_lxc_net_t:s0:c823,c855",
然后修改为:
"MountLabel":"",
"ProcessLabel":"",
重启 docker 即可。展开评论4
![[晕]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_33.12a8e53.png)
下班倒计时111分钟。![[绝望的凝视]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_69.cabd864.png)