系统升级后无法运行任何docker映像 [英] Cant run any docker image after system upgrade

查看:103
本文介绍了系统升级后无法运行任何docker映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've upgraded a OS today (from xubuntu 19 to xubuntu 20 in case its useful) and my docker images stopped working. Docker command itself work, but when I try to run any image (like postgres for example), I always get

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

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

at the end (of course various images have different entrypoints but none of them can start, always for similar reason).

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

I ran docker system prune -a --volumes, reinstalled docker with snap (snap uninstall docker && snap install docker). Docker run still doesn't work, it pulls the image but at the end I get the same error.

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

I'm running out of ideas how to approach it. What can be an issue?

//编辑

我运行的确切命令:

$ 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

推荐答案

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

what permissions does the file /usr/local/bin/docker-entrypoint.sh have? try to print them and see if you have permission to edit them in the currennt user.

我可以看到一个在这里工作的解决方案-

I can see a solution that worked in here - https://github.community/t5/GitHub-Actions/Permission-Denied-quot-exec-entrypoint-sh-quot/td-p/31249

这篇关于系统升级后无法运行任何docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆