docker - 由于 “Couldn' t卸载前运行auplink而无法进行docker构建”错误

标签 docker dockerfile

当我运行docker build时,我得到了:

Sending build context to Docker daemon  10.24kB
WARN[11935] Couldn't run auplink before unmount /var/lib/docker/aufs/mnt/21647778a50f097d4535246ec5206960dd909f4bb8b0e3d04fdd53a7402fc2de-init: exec: "auplink": executable file not found in $PATH 
Step 1/2 : FROM debian:jessie
 ---> 86baf4e8cde9
Step 2/2 : RUN apt-get update
WARN[11935] Couldn't run auplink before unmount /var/lib/docker/aufs/mnt/21647778a50f097d4535246ec5206960dd909f4bb8b0e3d04fdd53a7402fc2de: exec: "auplink": executable file not found in $PATH 
 ---> Running in 1fef9bef5bf7
ERRO[11934] containerd: start container                   error="shim error: fork/exec /usr/bin/docker-runc: exec format error" id=1fef9bef5bf77141a97669d2aa785e74f9027a849919a937f714e93fbae3916d
ERRO[11935] Create container failed with error: shim error: fork/exec /usr/bin/docker-runc: exec format error 
ERRO[11934] containerd: deleting container                error="fork/exec /usr/bin/docker-runc: exec format error: \"\""
WARN[11935] Couldn't run auplink before unmount /var/lib/docker/aufs/mnt/21647778a50f097d4535246ec5206960dd909f4bb8b0e3d04fdd53a7402fc2de: exec: "auplink": executable file not found in $PATH 
shim error: fork/exec /usr/bin/docker-runc: exec format error

这是我的Dockerfile的内容:
FROM debian:jessie

RUN apt-get update

有什么问题这对我没有任何意义。
ll /usr/bin | grep docker
-rwxr-xr-x  1 root   root    18471276 Aug  3 22:08 docker*
-rwxr-xr-x  1 root   root     9938352 Aug  3 22:08 docker-containerd*
-rwxr-xr-x  1 root   root     8941944 Aug  3 22:08 docker-containerd-ctr*
-rwxr-xr-x  1 root   root     3824920 Aug  3 22:08 docker-containerd-shim*
-rwxr-xr-x  1 root   root    40328816 Aug  3 22:08 dockerd*
-rwxr-xr-x  1 root   root           0 Aug  3 22:08 docker-init*
-rwxr-xr-x  1 root   root           0 Aug  3 22:08 docker-proxy*
-rwxr-xr-x  1 root   root           0 Aug  3 22:08 docker-runc*
-rwxr-xr-x  1 root   root     8962864 Aug  3 21:40 docker-volume-local-persist*

https://docs.docker.com/engine/installation/linux/docker-ce/binaries/安装
file $(which docker-runc):
/usr/bin/docker-runc: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=e3d80e183baf26a9d48c3f0435931d42aa1bf340, not stripped

lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:    17.04
Codename:   zesty

docker -版本
Docker version 17.06.0-ce, build 02c1d87

dockerd-版本
Docker version 17.06.0-ce, build 02c1d87

docker-containerd --version
containerd version 0.2.3 commit: cfb82a876ecc11b5ca0977d1733adbe58599088a

docker-containerd-ctr-版本
ctr version 0.2.3 commit: cfb82a876ecc11b5ca0977d1733adbe58599088a

docker-init --version
tini version 0.13.0 - git.949e6fa

docker-runc-版本
runc version 1.0.0-rc3
commit: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
spec: 1.0.0-rc5

最佳答案

这可以在非Intel / ARM 64位Ubuntu上运行吗?例如Raspberry Pi或ARM64 CPU?这个错误:
shim error: fork/exec /usr/bin/docker-runc: exec format error
可能意味着(a)计算机上的二进制安装以某种方式损坏,或者(b)您试图为系统上的其他体系结构运行二进制文件。

您可以发布uname -afile /usr/bin/docker-runc的输出吗?这可能有助于缩小问题的根源。

关于docker - 由于 “Couldn' t卸载前运行auplink而无法进行docker构建”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45537948/

相关文章:

mysql - 在互联网上公开本地 Docker 容器(有两个容器相互链接)。

azure - 容器应用程序环境中批处理作业的调度执行

docker - Gitlab Runner 为 docker executor 折叠多行命令

javascript - 为什么在 dockerfile 中使用两次复制?

azure-devops - 如何将 azure 管道工件复制到 docker 镜像,即 microsoft dotnetcore 运行时镜像

docker - 与 ENTRYPOINT 相反的命令

c - 在docker下运行objdump显示不同的结果

docker - 如何使用 docker 内的套接字将 nginx 套接字与 gunicorn 应用程序结合起来?

java - 谷歌应用程序引擎灵活环境部署失败,找不到文件

php - 如何使用 Dockerfile 以基于 Ubuntu 镜像的 php-fpm 启动 Nginx?