Hacker News new | ask | show | jobs
by coaxial 2879 days ago
How do you keep your docker images up to date? With virtual machines or even lxd containers, you can enable unattended upgrades but not with docker. There is a project (I forget the name) to destroy and rebuild containers with the newer image version, but it doesn't work with images that are built off of others using a Dockerfile.
2 comments

I just do it manually for now but have created some bash_aliases to help:

  alias dcup='docker-compose up -d'
  alias dcrestart='docker-compose down && dcup'
  alias dcpull='docker-compose pull'
  alias dcpullup='docker-compose pull && docker-compose up -d'
watchtower (https://github.com/v2tec/watchtower) is the project you're probably thinking of. It works great for me.
This looks useful, thanks for the link.