【问题标题】:error creating overlay mount to /var/lib/docker/overlay2/创建覆盖挂载到 /var/lib/docker/overlay2/ 时出错
【发布时间】:2018-09-26 15:34:18
【问题描述】:

我收到以下错误信息:

{"changed": false, "msg": "创建容器时出错:500 服务器错误: 内部服务器错误(\“错误创建覆盖挂载到 /var/lib/docker/overlay2/e17accf17aa46c9d12dbc4da10e399121b476698039cdcf54a5bb42443ffc260-init/合并: 无效参数\")"}

docker 信息如下:

Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.13.1
Storage Driver: overlay2
Backing Filesystem: <unknown>
Supports d_type: true
Native Overlay Diff: false
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Authorization: rhel-push-plugin
Swarm: inactive
Runtimes: oci runc
Default Runtime: oci
Init Binary: /usr/libexec/docker/docker-init-current
containerd version: 1556cce7e5c5349fdffeb123c092a7681769866a (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: 1556cce7e5c5349fdffeb123c092a7681769866a-dirty (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
seccomp
 WARNING: You're not using the default seccomp profile
 Profile: /etc/docker/seccomp.json
selinux
Kernel Version: 4.18.7-200.fc28.x86_64
Operating System: Fedora 28 (Server Edition)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 24
Total Memory: 94.34 GiB
Name: xxxxxx.com
ID: U63T:T7ZF:HWDJ:4NKZ:YUW2:KO6W:7RI5:Y6MY:VKSQ:DJSL:FGD5:QMZS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
Registries: docker.io (secure), registry.fedoraproject.org (secure), quay.io (secure), registry.access.redhat.com (secure), registry.centos.org (secure), docker.io (secure)

Here Backing filesystem 在此处显示未知。如何将其更改为 xfs 或其他相关的工作?提前致谢。

【问题讨论】:

标签: docker filesystems


【解决方案1】:

我可以通过在 Docker 中恢复出厂设置来解决此问题。

Docker for Mac -> 故障排除 -> 重置出厂默认设置

【讨论】:

  • 我随后重置为出厂设置,然后我重新启动 docker 并使用新的终端选项卡使用 docker-compose 构建我的容器
【解决方案2】:
$ vim /etc/docker/daemon.json

{

"max-concurrent-uploads": 1

}

$ service docker restart

发布它以防它帮助某人。 我对码头工人有同样的问题。它无法将图像推送到 GCR。以上能够解决我的问题。

【讨论】:

  • 您介意发布您的版本吗? docker 19 中似乎不存在该文件
【解决方案3】:

首先,我认为您可以使用xfs_info检查/var/lib/docker/overlay2目录是否可以支持overlay2

例如,

$ xfs_info /var/lib/docker/overlay2 | grep ftype
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1

如果输出为ftype=1,则可以支持overlay2

希望对你有帮助。 :^)

【讨论】:

    【解决方案4】:

    我刚刚遇到了同样的问题。我通过将docker使用的磁盘卷类型更改为Ext4或通过docker.service中的此命令将路径更改为Ext4卷来修复它

    ExecStart=/usr/bin/dockerd --graph /new-path/docker

    【讨论】:

      猜你喜欢
      • 2022-08-19
      • 1970-01-01
      • 2019-07-16
      • 2023-01-12
      • 2018-12-09
      • 1970-01-01
      • 2020-02-28
      • 1970-01-01
      • 2018-05-19
      相关资源
      最近更新 更多