Jafner.net/homelab/docs/Restart the Docker Daemon.md
Joey Hafner 6086222503
Reorganize root level of repo.
- Move homelab, Jafner.dev (now called blog) to root.
- Rename "archived projects" -> "archive"
- Rename "active projects" -> "projects"
- Rename "jafner-homebrew" -> "5ehomebrew"
- Rename "docker-llm-amd" -> "local-ai"
2024-07-16 12:17:55 -07:00

704 B

Restart the Docker Daemon

Sometimes it may be necessary to restart the Docker daemon (for example to apply changes made in /etc/docker/daemon.json) and recreate all containers. Here's how:

  1. Shut down and destroy all containers: docker stop $(docker ps -aq) && docker rm $(docker ps -aq).
  2. Restart (not reload) the Docker daemon: sudo systemctl restart docker.
  3. Recreate all containers (to use the new default loki logging): for app in ~/homelab/jafner-net/config/*; do cd $app && docker-compose up -d; done
  4. Manually boot Minecraft containers as appropriate: cd ~/homelab/jafner-net/config/minecraft && for server in router vanilla bmcp; do docker-compose -f $server.yml up -d; done