Portainer:具有 docker 修剪的主机作业不起作用

Portainer: Host Job with docker prune doesnt work

我有最新的 portainer 运行 在 docker 中管理我的图像和容器。

为了清理,我希望每天将命令“docker 图片 p运行e”发送到 运行。

为此,我想使用 Portainer 主机作业,如图所示 here

我做了 extaclty 相同的设置,相同的命令,但在我的 portinaer 中只有 1 个“创建”的 ubuntu 图像容器,没有任何反应。

将 docker 图片从 ubuntu:latest 更改为 ubuntu:18.04 为我解决了这个问题