Docker 常见问题
#
1、镜像下载慢,如何提高下载速度?#
2、如何配置 Docker 后端存储驱动?以 overlay 为例
#
3、docker info 出现 WARNING编辑/etc/default/grub
文件,并设置:
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
接着
SUSE
Cetos
Ubuntu
#
4、我怎么通过 rancher 让 docker 里的程序代理上网呢?启动容器的时候添加:
#
5、Docker Error: Unable to remove filesystemSome container-based utilities, such as Google cAdvisor, mount Docker system directories, such as /var/lib/docker/, into a container. For instance, the documentation for cadvisor instructs you to run the cadvisor container as follows:
When you bind-mount /var/lib/docker/
, this effectively mounts all resources of all other running containers as filesystems within the container which mounts /var/lib/docker/
. When you attempt to remove any of these containers, the removal attempt may fail with an error like the following:
The problem occurs if the container which bind-mounts /var/lib/docker/
uses statfs
or fstatfs
on filesystem handles within /var/lib/docker/
and does not close them.
Typically, we would advise against bind-mounting /var/lib/docker
in this way. However, cAdvisor requires this bind-mount for core functionality.
If you are unsure which process is causing the path mentioned in the error to be busy and preventing it from being removed, you can use the lsof command to find its process. For instance, for the error above: