我今天升级了一个操作系统(从 xubuntu 19 升级到 xubuntu 20,以防万一有用(,我的 docker 镜像停止工作。Docker命令本身可以工作,但是当我尝试运行任何图像(例如postgres(时,我总是得到
bash: /usr/local/bin/docker-entrypoint.sh: Permission denied
最后(当然,各种图像有不同的入口点,但它们都无法开始,总是出于类似的原因(。
我运行了 docker 系统修剪 -a --volumes,用 snap 重新安装了 docker(snap 卸载 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
文件/usr/local/bin/docker-entrypoint.sh 有?尝试打印它们,看看您是否有权在 Currennt 用户中编辑它们。
我可以看到一个在这里有效的解决方案 - https://github.community/t5/GitHub-Actions/Permission-Denied-quot-exec-entrypoint-sh-quot/td-p/31249