加载共享库时docker生成运行错误

加载共享库时docker生成运行错误,docker,sh,libc,Docker,Sh,Libc,我在RHEL服务器上运行简单构建时遇到问题 运行docker build时,我得到 Step 2/2 : RUN echo "Hello there!" ---> Running in 0d0fd7f69a5f /bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory The command '/bin/sh -c

我在RHEL服务器上运行简单构建时遇到问题

运行
docker build
时,我得到

Step 2/2 : RUN echo "Hello there!"
 ---> Running in 0d0fd7f69a5f

/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
The command '/bin/sh -c echo "Hello there!"' returned a non-zero code: 127
Dockerfile:

FROM ubuntu:latest
RUN echo "Hello there!"
RHEL 7.7-Linux 3.10.0-1062.9.1.el7.x86_64

Docker版本1.13.1,构建4ef4b30/1.13.1


Dockerfile很好-我可以在任何其他机器上构建映像,所以我想知道问题到底在哪里。谢谢

谢谢大家的建议


原来这是一个SELinux问题。似乎Docker需要正确配置SELinux才能运行(在我的例子中,我选择使用
sudo setEnforce0
)禁用SELinux。

echo“Hello world”在RHEL终端上工作吗?你试过
运行sudo echo“Hello there!”
吗?试着做
Docker pull ubuntu
;你本地的
ubuntu
图像似乎指向了其他东西。
echo“Hello world”
有效<代码>sudo没有帮助
docker pull ubuntu
说docker的图像是最新的。io/ubuntu:latest你能在你的主机上做这个检查吗?