docker - 无法在 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
}
解决方案
目前,不支持 Amazon Linux 分发。该发行版没有任何官方软件包,而且 docker 没有对其进行测试。
似乎这个错误是由cgroups 包引发的
您可以尝试运行此脚本以检查是否缺少任何内容或配置错误。
推荐阅读
- javascript - 如何在javascript中调用图像
- java - 我想知道是否从节点中删除了具有特定 ID 的项目
- macos-mojave - 将 Mojave 重音颜色转换为 RGBA
- linux - 压缩目录中的文件,不带文件扩展名
- mysql - 我想在ubuntu18.10上安装mysql8.0,但是apt一直在尝试安装mysql5.7,为什么?
- swift - 如何捏放大代码创建的滚动视图
- flutter - 如何通过颤振获得当前设备的地理位置?
- javascript - DOM 事件目标解构
- swift - Firebase 函数(putData / putFile)不执行
- python - 使用 Google Speech API 在 python 中出现属性错误