Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,请问我在openwrt上部署docker后,为何定时sh脚本会报错? #3

Closed
KNedwin opened this issue Dec 17, 2023 · 6 comments

Comments

@KNedwin
Copy link

KNedwin commented Dec 17, 2023

image
计划任务是设置好的。

image
image
手动执行脚本或自动执行脚本后会出现如上的新镜像,容器那边就直接报错了。

image
直接执行脚本是这个报错。看报错好像是容器名称被占用?

@HerbertHe
Copy link
Owner

1ef61c8 这个 commit 里面已经修复了,下载最新的即可~

@HerbertHe
Copy link
Owner

因为下拉的时候没有删掉容器服务导致了,本地容器占用了。脚本里面先删掉了容器,就能解决这个问题了。

@KNedwin
Copy link
Author

KNedwin commented Dec 17, 2023

好的,谢谢大佬的开发。

@KNedwin
Copy link
Author

KNedwin commented Dec 17, 2023

image
这个老镜像是不是,可以也在脚本里自动删除啊。
我看似乎每次只要跟新,都会多一个新的镜像。

@HerbertHe
Copy link
Owner

是的,不敢动用户本地环境哈哈哈

@HerbertHe
Copy link
Owner

d2fb4c0 @KNedwin 以及支持删除 dangling images 了,更新脚本文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants