docker - 创建覆盖挂载到/var/lib/docker/overlay2/时出错

标签 docker filesystems

我收到以下错误消息:

{"changed": false, "msg": "Error creating container: 500 Server Error: Internal Server Error (\"error creating overlay mount to /var/lib/docker/overlay2/e17accf17aa46c9d12dbc4da10e399121b476698039cdcf54a5bb42443ffc260-init/merged: invalid argument\")"}



docker info 显示如下:
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 或一些相关的工作?提前致谢。

最佳答案

$ vim /etc/docker/daemon.json

{

"max-concurrent-uploads": 1

}

$ service docker restart

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

关于docker - 创建覆盖挂载到/var/lib/docker/overlay2/时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52521460/

相关文章:

docker - 从 docker 容器中访问文件

python - 基于诗人 tensorflow 的图像分类器再训练期间运行retrain.py时出错

linux - 用于查找文件的 Bash 脚本

javascript - 检查用户是否可以打开网站中的文件类型

docker - 在 docker compose 中更改容器端口

docker - Nginx try_files 不适用于我的 Vue 应用程序

shell - 退格后 HBase shell 崩溃

linux - 如何在overlayfs中使用多个低层

hadoop - 文件大小不正确的文件系统镜像

c++ - C++读取整个文件目录