docker-daemon
docker-daemon copied to clipboard
A Docker daemon to run in Fly and access via a WireGuard peer.
trafficstars
Fly Docker Daemon
This is a Docker Daemon that runs on Fly.io and can be used to offload builds and other tasks to a Fly app running in a city near you.
Installation
- Clone this repository
fly launch, follow the prompts- Select
nwhen it asks if you want to deploy - Create a volume in a region of your choice:
fly volumes create data --size 50 --region ord - Deploy
Get Connected
- Create a WireGuard peer with
fly wireguard create - Setup WireGuard with generated config
fly ips privateto get the IP of your Daemon- Set the
DOCKER_HOSTenv variable using that IP:export DOCKER_HOST=tcp://[fdaa:0:5d2:a7b:81:0:26d4:2]:2375
Final Step
- Delete the Docker Engine from your local system.
- You probably want to scale your remote Daemon:
fly scale vm dedicated-cpu-2x