创建覆盖装载到/var/lib/docker/overlay 2/时出错

lokaqttq  于 2022-11-22  发布在  Docker
关注(0)|答案(5)|浏览(855)

我收到以下错误消息:
{“已更改”:假,“消息”:“创建容器时出错:500服务器错误:内部服务器错误(“创建覆盖装载到/var/lib/docker/overlay 2/e17 accf 17 aa 46 c9 d12 dbc 4da 10 e399121 b476698039 cdcf 54 a5 b42443 ffc 260-init/merged时出错:参数”)"}无效
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)

这里的备份文件系统显示未知。如何将其更改为xfs或一些相关的工作?

ozxc1zmp

ozxc1zmp1#

我能够通过在Docker中进行工厂重置来解决这个问题。
Docker for Mac -〉故障排除(它是设置图标旁边的“bug”图标)-〉重置出厂默认值

1bqhqjot

1bqhqjot2#

$ vim /etc/docker/daemon.json

{

"max-concurrent-uploads": 1

}

$ service docker restart

张贴它的情况下,它有助于某人。我有同样的问题与docker。它不能推图像到GCR。上述能够解决我的问题。

lx0bsm1f

lx0bsm1f3#

首先,我认为您可以使用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
我希望它能帮助你。:^)

ccrfmcuu

ccrfmcuu4#

我刚刚遇到了同样的问题。我通过在docker.service中使用此命令将Docker使用的磁盘卷类型更改为Ext4或将路径更改为Ext4卷来修复它
执行开始=/usr/bin/dockerd --图表/新路径/docker

eni9jsuy

eni9jsuy5#

这可能是因为daemon.json不存在。要创建它,您可以执行以下步骤:打开“Docker桌面”〉“首选项”〉“Docker引擎”〉在“通过键入json Docker守护进程配置文件来配置Docker守护进程”〉“应用和重新启动”下编辑文本编辑器。

相关问题