ubuntu docker:来自守护程序的错误响应:无法创建填充程序任务

4dc9hkyq  于 2023-03-07  发布在  Docker
关注(0)|答案(1)|浏览(181)

我已经在Ubuntu服务器上安装了Docker。但是,当我运行docker run hello-world时,显示了此错误消息
docker:来自守护程序的错误响应:无法创建填充程序任务:OCI运行时创建失败:runc创建失败:无法启动容器进程:容器初始化期间出错:将"proc"装载到位于"/proc "的rootfs时出错:装载进程:/proc(通过/proc/self/fd/6),标志:0xe:权限被拒绝:未知。ERRO [0000]等待容器时出错:上下文已取消
我该怎么补救?

  • Ubuntu 20.04
  • Docker版本20.10.22
  • Docker信息输出:
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
  scan: Docker Scan (Docker Inc., v0.23.0)

Server:
 Containers: 9
  Running: 0
  Paused: 0
  Stopped: 9
 Images: 1
 Server Version: 20.10.22
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 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: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9ba4b250366a5ddde94bb7c9d1def331423aa323
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.78-2-pve
 Operating System: Ubuntu 20.04.5 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 8GiB
 Name: CT109
 ID: WQC6:HBSP:ZMPA:W7MM:56AM:PU5E:63XF:TMFO:RJN5:WGNQ:V7GB:KLW6
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
  • Docker版本输出:
Client: Docker Engine - Community
 Version:           20.10.22
 API version:       1.41
 Go version:        go1.18.9
 Git commit:        3a2c30b
 Built:             Thu Dec 15 22:28:08 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.22
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.9
  Git commit:       42c8b31
  Built:            Thu Dec 15 22:25:58 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.14
  GitCommit:        9ba4b250366a5ddde94bb7c9d1def331423aa323
 io.containerd.runc.v2:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

我已经安装了qemu-kvm、libvirt-clients、libvirt-daemon-system

bmp9r5qi

bmp9r5qi1#

我知道了。你没有访问/proc的权限。使用chmod a+rw /procchown,你会修复它的。

相关问题