Docker & nginx 操作不允许
Docker & nginx operation not permitted
我正在尝试 运行 使用 Docker 在 Arch Linux 服务器上运行 Nginx。我已经创建了容器:
[root@tronagon atc]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
nginx latest 5328fdfe9b8e 5 days ago 133.9 MB
[root@tronagon atc]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@tronagon atc]# docker create nginx
9842dcf58c17504c3723a6c0c0648e43c17e771d2b3fe315bde2e4979536fd09
然而,当我尝试启动它时,出现 System error: operation not permitted
错误:
[root@tronagon atc]# docker start 984
Error response from daemon: Cannot start container 984: [8] System error: operation not permitted
Error: failed to start containers: [984]
docker 守护进程肯定是 运行ning:
[root@tronagon atc]# systemctl status docker
* docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2015-12-22 10:05:23 UTC; 1h 8min ago
Docs: https://docs.docker.com
Main PID: 908 (docker)
CGroup: /system.slice/docker.service
`-908 /usr/bin/docker daemon -H fd:// --exec-opt native.cgroupdriver=cgroupfs
事实上,我不能运行任何容器:
[root@tronagon atc]# docker run -it ubuntu /bin/bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
0bf056161913: Pull complete
1796d1c62d0c: Pull complete
e24428725dd6: Pull complete
89d5d8e8bafb: Pull complete
Digest: sha256:a2b67b6107aa640044c25a03b9e06e2a2d48c95be6ac17fb1a387e75eebafd7c
Status: Downloaded newer image for ubuntu:latest
exec format error
Error response from daemon: Cannot start container 224bef93152b5537c8650258172c43226243859b7047657ef488f23e195ad051: [8] System error: exec format error
有什么想法吗?
原来我是 运行 32 位 OS -- Arch Linux on ARM v7 rev 10 -- 容器是 64 位的,这就是为什么我出现执行错误。
通过 docker 安装可以从默认的 Arch Linux ARM 存储库获得一些 ARM 等效映像。 运行 找到以下内容:
docker search armhf
我正在尝试 运行 使用 Docker 在 Arch Linux 服务器上运行 Nginx。我已经创建了容器:
[root@tronagon atc]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
nginx latest 5328fdfe9b8e 5 days ago 133.9 MB
[root@tronagon atc]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@tronagon atc]# docker create nginx
9842dcf58c17504c3723a6c0c0648e43c17e771d2b3fe315bde2e4979536fd09
然而,当我尝试启动它时,出现 System error: operation not permitted
错误:
[root@tronagon atc]# docker start 984
Error response from daemon: Cannot start container 984: [8] System error: operation not permitted
Error: failed to start containers: [984]
docker 守护进程肯定是 运行ning:
[root@tronagon atc]# systemctl status docker
* docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2015-12-22 10:05:23 UTC; 1h 8min ago
Docs: https://docs.docker.com
Main PID: 908 (docker)
CGroup: /system.slice/docker.service
`-908 /usr/bin/docker daemon -H fd:// --exec-opt native.cgroupdriver=cgroupfs
事实上,我不能运行任何容器:
[root@tronagon atc]# docker run -it ubuntu /bin/bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
0bf056161913: Pull complete
1796d1c62d0c: Pull complete
e24428725dd6: Pull complete
89d5d8e8bafb: Pull complete
Digest: sha256:a2b67b6107aa640044c25a03b9e06e2a2d48c95be6ac17fb1a387e75eebafd7c
Status: Downloaded newer image for ubuntu:latest
exec format error
Error response from daemon: Cannot start container 224bef93152b5537c8650258172c43226243859b7047657ef488f23e195ad051: [8] System error: exec format error
有什么想法吗?
原来我是 运行 32 位 OS -- Arch Linux on ARM v7 rev 10 -- 容器是 64 位的,这就是为什么我出现执行错误。
通过 docker 安装可以从默认的 Arch Linux ARM 存储库获得一些 ARM 等效映像。 运行 找到以下内容:
docker search armhf