Portable Docker: Build and Deploy Anywhere with WireGuard Tunneling

This book serves as your guide to installing Docker on a small portable Linux device (e.g., Raspberry Pi) and deploying some web service containers on it.

You’ll also create and configure a public cloud server (e.g., a DigitalOcean droplet) whose sole purpose is to host a VPN (WireGuard) and public gateway (Traefik), enabling the Raspberry Pi to securely connect from any location.

Through the encrypted tunnel established by this connection, the Pi can publish services to the Internet even when operating behind a restrictive firewall, such as public Wi-Fi, mobile hotspots, or carrier-grade NAT. As long as you can get unblocked outgoing Internet access, you can self-host a roaming public server from anywhere!

d.rymcg.tech Chat with us on Matrix