Moved yet again

So the blog moved again. It’s still on WordPress and still run with Docker, but is now being hosted at home on my new compute node. The docker compose file is almost the same but have learned loads about the sidebar pattern. Previously I ran WordPress and MariaDB using docker compose but the backup was external to that stack. With the sidecar pattern I have a backup sidecar container in the stack that encapsulates the backup logic and that may then be scripted from the outside with cron. Really powerful.

The blog is also now behind two layers of reverse proxies (one that fronts the entire home lab and one that fronts only Docker based services) which gave its own set of complexity and a very late night. But as with all things presenting challenges, you learn so much from solving the challenge and making it work.

I’ll try and make it stay here for a while at least…

Docker without sudo

Using Docker looks very promising but having to use sudo all the time is really a killer. Luckily there’s a way around it by adding users to the docker group and restarting the docker service.

  • Add the docker group if it doesn’t already exist: sudo groupadd docker
  • Add the connected user “${USER}” to the docker group. Change the user name to match your preferred user: sudo gpasswd -a ${USER} docker
  • Restart the Docker daemon: sudo service docker restart
  • If you are on Ubuntu 14.04 and up use docker.io instead: sudo service docker.io restart

How can I use docker without sudo?