LemmyNet / lemmy-ansible

A docker deploy for ansible
GNU Affero General Public License v3.0
248 stars 94 forks source link

feat: remove open port & enable docker live-restore #249

Closed ticoombs closed 1 week ago

ticoombs commented 2 weeks ago

Here we give a QOL update to lemmy-ansible.

Nothing4You commented 2 weeks ago

It might make sense to put live restore behind a var that is disabled by default and instruct people to read and understand https://docs.docker.com/config/containers/live-restore/ first if they want to use it, otherwise it might be an easy trap for people with less docker experience.

Live restore allows you to keep containers running across Docker daemon updates, but is only supported when installing patch releases (YY.MM.x), not for major (YY.MM) daemon upgrades.

If you skip releases during an upgrade, the daemon may not restore its connection to the containers. If the daemon can't restore the connection, it can't manage the running containers and you must stop them manually.