Skip to content

Comment on Ask HN: Which self-hosted solutions are you using?parent

Comments

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.