Keep Docker Containers Running On A Synology NAS Up To Date

 sudo docker image prune (remove unused images on the Synology NAS)



• sudo docker run -d --name watchtower --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -v /etc/localtime:/etc/localtime:ro -e WATCHTOWER_POLL_INTERVAL=3600 -e WATCHTOWER_CLEANUP=true containrrr/watchtower (command to setup Watchtower that will update running Docker containers automatically)




sudo docker image ls (view Docker images downloaded to the Synology NAS)

• sudo docker container inspect pihole | grep Image (display the image that the pihole container is using)




评论

此博客中的热门博文

带8个免费监控授权的黑群晖DSM7.X安装教程和注意事项

甲骨文云dd重装系统一键脚本

synology 查看隐藏目录和 文件夹大小