【发布时间】:2020-05-29 17:31:22
【问题描述】:
我每天都使用 docker,但是今天早上,当我尝试启动一些容器时,我的每个容器都使用入口点脚本失败了:
$ docker run postgres:11
bash: /usr/local/bin/docker-entrypoint.sh: Permission denied
$ docker run mysql:5
/bin/bash: /usr/local/bin/docker-entrypoint.sh: Permission denied
$ docker run php:7.3-apache
/bin/sh: 0: Can't open /usr/local/bin/docker-php-entrypoint
我成功地docker run hello-world 没有错误。
会发生什么?自从上次工作以来,我认为我的计算机上没有任何重要的更改...我在 Ubuntu 20.04 上。 感谢您的帮助。
更新
我仍然不知道发生了什么。我设法通过删除docker-ce 并重新安装它使其再次工作:
sudo apt-get remove docker-ce
sudo apt install docker-ce
docker run postgres:11
==> ok, worked!
但是,每次我关闭我的笔记本电脑然后再打开它,我都会再次遇到同样的问题,docker 不会运行任何带有入口点的容器。
有什么想法吗?
【问题讨论】:
-
试试
docker run postgres:11 /bin/sh看看是否有效
标签: docker