Jump to content

docker更新不可用


Recommended Posts

Posted
3 hours ago, cddjr said:

可以尝试手动运行以下命令刷新Docker的更新状态

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/dockerupdate

 

手动刷新是可以的,但为什么点检查更新按钮就不行呢

Posted (edited)

我遇到了类似的情况。

 

我的解决办法是,终端执行 docker login,登录一下账号。

 

登录后界面重新点击“检查更新”,问题消失。

Edited by under_bed
Posted (edited)
On 9/25/2024 at 1:07 PM, Shanyan said:

手动刷新是可以的,但为什么点检查更新按钮就不行呢

 

我的unraid是通过配置代理实现的梯子,可能在自动检测更新的时候没有走代理,所以失败。

而我们直接运行命令,由于终端配置了代理环境,所以可以成功。

 

具体是不是如此,我没有深入研究,不清楚是不是unraid的bug。

但如果你是网关指向软路由实现的全局代理,那应该不会有这个问题。

Edited by cddjr
Posted (edited)

我已经定位到问题了,是因为通过ProxyEditor配置的代理无法被定时任务使用。

(unraid通过crontab的方式自动检测docker更新,而crontab不会加载/etc/profile)

 

临时应对方法是运行如下命令:

sed -i "s|*.cron|*.cron \| sed 's\| /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/dockerupdate\| source /etc/profile;/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/dockerupdate\|'|" /usr/local/sbin/update_cron

其原理是强制让cron在执行联网检测前加载我们配置的代理变量(可以将此命令追加到go文件,确保在重启后也能生效)

 

最后在终端中执行这条命令,重新生成定时任务

/usr/local/sbin/update_cron

 

这样操作后,unraid就能通过代理去定时检测docker更新了。

 

Quote

TODO:目前发现CA插件的检测Docker更新也没有用到代理,会导致状态异常

 

Edited by cddjr
Posted

用了楼上的代码之后\

 

再输入 /usr/local/sbin/update_cron

 

都提示 报错 

 

bash:  /usr/local/sbin/update_cron: No such file or directory

  • 3 weeks later...
Posted

梯子插件问题,升级7.0就好了,用系统自带梯子。我已经用7.0一段时间了,再没出现的问题,同样的代理

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...