704 B
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:
- Shut down and destroy all containers:
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
. - Restart (not reload) the Docker daemon:
sudo systemctl restart docker
. - 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
- 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