简体   繁体   English

更改 docker 数据目录的数据根后,Docker 覆盖/容器在 Ubuntu 文件的管理器中可见

[英]Docker overlays/containers are visible in Ubuntu file's manager after changing data-root of docker data directory

I have recently moved docker data directory from /var/lib/docker to /home/user/docker as mentioned here https://www.guguweb.com/2019/02/07/how-to-move-docker-data-directory-to-another-location-on-ubuntu/ and all works fine, except I see all container's overlays/volumes in System file's manager as mounted drives.我最近将 docker 数据目录从/var/lib/docker docker 移动到/home/user/docker docker,如此处所述https://www.guguweb.com/2019/02/07/how-to-move-docker-data- directory-to-another-location-on-ubuntu/一切正常,除了我在系统文件的管理器中看到所有容器的覆盖/卷作为已安装的驱动器。

在此处输入图像描述

They are visible until I stop docker/container.在我停止 docker/container 之前,它们是可见的。 This is quite annoying with many containers running on.这对于运行许多容器来说非常烦人。

Anybody faced this issue?有人遇到过这个问题吗? Any solutions?有什么解决办法吗?

In case anyone will face this problem in the future - just put it in /home/docker万一将来有人会遇到这个问题 - 只需将它放在/home/docker

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM