首页 > 解决方案 > 无法在 Amazon Linux AMI 中使用 docker run hello-world

问题描述

无法在 Amazon Linux AMI 中使用 docker run

码头工人运行你好世界

码头工人:

来自守护程序的错误响应:无法在控制器集中找到“pids”:未知。ERRO[0000] 错误等待容器:上下文已取消

码头工人信息

{ # docker info
Containers: 6
 Running: 0
 Paused: 0
 Stopped: 6
Images: 2
Server Version: 18.06.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version:
runc version: 
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.14.72-68.55.amzn1.x86_64
Operating System: Amazon Linux AMI 2018.03
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.79GiB
Name: ip-172-31-0-234
ID: AGTD:BUGU:RDRN:CSHC:INSH:HCMG:QFYT:OUNC:NCVZ:UDAM:PJYS:3ZQM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: magsgfin
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
 }

标签: docker

解决方案


目前,不支持 Amazon Linux 分发。该发行版没有任何官方软件包,而且 docker 没有对其进行测试。

似乎这个错误是由cgroups 包引发的

您可以尝试运行此脚本以检查是否缺少任何内容或配置错误。


推荐阅读