Docker相关异常、问题汇总

查看 Docker 的启动日志

[root@centos-101 ~]# journalctl -u docker.service

[root@centos-101 ~]# systemctl status docker -l


1. docker-compose up 异常 — ‘Mount denied:nThe source path “\var\run\docker.sock:/tmp/docker.sock”n is not a valid Windows path’

解决办法:

在docker compose yaml 文件相同目录下,创建一个 .env 文件,添加如下配置:

COMPOSE_CONVERT_WINDOWS_PATHS=1

参考链接:

https://github.com/docker/for-win/issues/1829#issuecomment-376328022

https://stackoverflow.com/questions/49507912/docker-jwilder-nginx-proxy-container-create-issue

=============================================


2. 通过 journalctl -xe 查看到的异常信息-/var/lib/docker 包含了多种有效的graphdrivers: devicemapper,overly;请清除或者显式选择storage driver。

6月 06 13:50:21 local dockerd[22018]: time=”
2018-06-06T13:50:21.016185408+08:00″ level=warning msg=”failed to rename /var/lib/docker/tmp for background deletion: rename /var/lib/docker/tmp /var/lib/docker/tmp-old: file exists. Deleting synchronously”

6月 06 13:50:21 local dockerd[22018]: time=”
2018-06-06T13:50:21.019150299+08:00″ level=warning msg=”overlay: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior. Reformat the filesystem with ftype=1 to enable d_type suppo

6月 06 13:50:21 local dockerd[22018]: Error starting daemon: error initializing graphdriver: /var/lib/docker contains several valid graphdrivers: devicemapper, overlay; Please cleanup or explicitly choose storage driver (-s <DRIVER>)

6月 06 13:50:21 local systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE

6月 06 13:50:21 local systemd[1]: Failed to start Docker Application Container Engine.

— Subject: Unit docker.service has failed

— Defined-By: systemd

— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit docker.service has failed.

— The result is failed.

6月 06 13:50:21 local systemd[1]: Unit docker.service entered failed state.

6月 06 13:50:21 local systemd[1]: docker.service failed.

6月 06 13:50:21 local systemd[1]: docker.service holdoff time over, scheduling restart.

6月 06 13:50:21 local systemd[1]: start request repeated too quickly for docker.service

6月 06 13:50:21 local systemd[1]: Failed to start Docker Application Container Engine.

— Subject: Unit docker.service has failed

— Defined-By: systemd

— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit docker.service has failed.

— The result is failed.

6月 06 13:50:21 local systemd[1]: Unit docker.service entered failed state.

6月 06 13:50:21 local systemd[1]: docker.service failed.

Error starting daemon: error initializing graphdriver: “/var/lib/docker”” contains several valid graphdrivers: devicemapper

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2019年3月8日
下一篇 2019年3月8日

相关推荐