我发现我的对接者使用cgroup v2,但是有些工具需要与cgroup v1一起运行,是否可以降级到v1呢?是否有deamon.json的配置参数?
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.8.2)
compose: Docker Compose (Docker Inc., v2.5.1)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.17.0)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 62
Server Version: 20.10.14
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc version: v1.0.3-0-gf46b6ba
init version: de40ad0
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 5.10.104-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 9.952GiB
Name: docker-desktop
ID: ZWVT:2FQD:VLYG:LJNP:FTMD:43CI:TZGO:ZQMC:RAES:OXO2:6JFH:POXZ
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5000
127.0.0.0/8
Live Restore Enabled: false发布于 2022-11-07 14:33:18
我在docker桌面发布说明中找到了一个解决办法:
https://docs.docker.com/desktop/release-notes/#bug-fixes-and-minor-changes-20
向settings.json添加了一个不推荐的选项:"deprecatedCgroupv1":true,它将Linux环境切换回cgroups v1。如果您的软件需要cgroup v1,您应该更新它以与cgroup v2兼容。尽管cgroup v1应该继续工作,但是将来的一些特性可能将依赖于cgroup v2。也有可能某些Linux内核错误只能用cgroup v2修复。
您可以在"$HOME/Library/Group /Group p.com.docker/setings.json“中找到settings.json。
https://stackoverflow.com/questions/74345772
复制相似问题