系统升级后无法运行任何docker映像

时间:2020-05-26 09:37:05

标签: docker

我今天已经升级了一个操作系统(从xubuntu 19升级到xubuntu 20,以防它有用),并且我的docker镜像停止工作。 Docker命令本身可以工作,但是当我尝试运行任何图像(例如,postgres)时,我总是得到

bash: /usr/local/bin/docker-entrypoint.sh: Permission denied

最后(当然,各种图像都有不同的入口点,但是由于相似的原因,它们都无法启动)。

我运行了docker system prune -a --volumes,用snap重新安装了docker(快照卸载docker && snap install docker)。 Docker运行仍然无法正常工作,它会拉出映像,但最后我得到了相同的错误。

我没有办法解决这个问题。有什么问题吗?

//编辑

我运行的确切命令:

$ docker run postgres
Unable to find image 'postgres:latest' locally
latest: Pulling from library/postgres
afb6ec6fdc1c: Pull complete 
51be5f829bfb: Pull complete 
e707c08f571a: Pull complete 
98ddd8bce9b5: Pull complete 
5f16647362a3: Pull complete 
5d56cdf9ab3b: Pull complete 
2207a50ca41d: Pull complete 
a51d14a628f3: Pull complete 
24dcb11335d0: Pull complete 
54cc759cb0bb: Pull complete 
debc11d66570: Pull complete 
3ffd0589b5fc: Pull complete 
490b7ee49751: Pull complete 
3511c6be34a0: Pull complete 
Digest: sha256:ec7cfff29672a2f676c11cc53ae7dafe63a57ccefc2b06ea423493227da29b9c
Status: Downloaded newer image for postgres:latest
bash: /usr/local/bin/docker-entrypoint.sh: Permission denied

1 个答案:

答案 0 :(得分:0)

/usr/local/bin/docker-entrypoint.sh文件具有什么权限 有?尝试打印它们,看看您是否有权在当前用户中对其进行编辑。

我可以看到一个在这里有效的解决方案-https://github.community/t5/GitHub-Actions/Permission-Denied-quot-exec-entrypoint-sh-quot/td-p/31249