2023-10-17 20:36:25 +00:00
|
|
|
# Fly Docker Daemon
|
|
|
|
|
|
|
|
This deploys a Docker Daemon running on Fly.io which you can used to offload builds and other tasks to a Fly app running in a city near you.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Clone this repository
|
2023-11-27 14:48:04 +00:00
|
|
|
1. `fly launch --no-deploy`, follow the prompts
|
|
|
|
1. Create a volume in a region of your choice: `fly volumes create data --size 50 --region bos`
|
2023-10-17 20:36:25 +00:00
|
|
|
1. Deploy
|
|
|
|
|
|
|
|
## Get Connected
|
|
|
|
|
|
|
|
1. Create a WireGuard peer with `fly wireguard create`
|
|
|
|
1. Setup WireGuard with generated config
|
|
|
|
1. `fly ips private` to get the IP of your Daemon
|
|
|
|
1. Set the `DOCKER_HOST` env variable using that IP:
|
|
|
|
```
|
2023-11-27 14:48:04 +00:00
|
|
|
export DOCKER_HOST=tcp://[fdaa:1:c1ea:a7b:1ed:2ce6:bb1e:2]:2375
|
2023-10-17 20:36:25 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
# Final Step
|
|
|
|
|
|
|
|
1. Delete the Docker Engine from your local system.
|
|
|
|
1. You probably want to scale your remote Daemon: `fly scale vm dedicated-cpu-2x`
|