# Run and Auto-Update Docker Containers on NixOS

DevFeed: [Run and Auto-Update Docker Containers on NixOS](<https://devfeed.tech/articles/run-and-auto-update-docker-containers-on-nixos-32427.md>)

Original publisher: [Read original article](<https://nixcademy.com/posts/auto-update-containers/>)

Author: Jacek Galowicz

Published: 2024-11-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Nixcademy Blog](<https://devfeed.tech/sources/nixcademy-blog.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [Home Assistant](<https://devfeed.tech/topics/home-assistant.md>), [Docker Image](<https://devfeed.tech/topics/docker-image.md>), [podman](<https://devfeed.tech/topics/podman.md>), [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [Containers](<https://devfeed.tech/topics/containers.md>)

Tags: [automatically](<https://devfeed.tech/tags/automatically.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-image](<https://devfeed.tech/tags/docker-image.md>), [home-assistant](<https://devfeed.tech/tags/home-assistant.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [pi-4](<https://devfeed.tech/tags/pi-4.md>), [podman](<https://devfeed.tech/tags/podman.md>), [raspberry-pi](<https://devfeed.tech/tags/raspberry-pi.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [update](<https://devfeed.tech/tags/update.md>)

## AI overview

A tutorial showing how to run Home Assistant in a Docker or Podman container on NixOS, including configuration for host networking and a Zigbee USB dongle. It also explains how to automate image updates and prune old images with systemd timers.

## Source excerpt

Learn how to run the Home Assistant Docker image on NixOS on a Raspberry Pi 4 or other NixOS machines and how to keep it up to date automatically.