Skip to content

Commit

Permalink
Add reference to section 3
Browse files Browse the repository at this point in the history
  • Loading branch information
poulti committed Feb 19, 2025
1 parent b77a0bc commit 168538f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docker-from-compose-to-swarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ At that point, I sorted all the questions I had to "translate" the compose file

### Set cgroups config

The following ansible playbook snippet sets the configuration of nodes, in particular reverting to cgroup version 1 to enable the use of devices.allow and mounting the device as a volume in docker.
The following ansible playbook snippet sets the configuration of nodes, in particular reverting to cgroup version 1 to enable the use of devices.allow and mounting the device as a volume in docker (as covered in [3. How to access **USB devices** in swarm mode?](#3-how-to-access-usb-devices-in-swarm-mode)).

```yaml
- name: Set up Raspberry cgroup configuration.
Expand Down Expand Up @@ -454,6 +454,10 @@ The following ansible playbook snippet sets the configuration of nodes, in parti
when: ansible_facts['env']['SUDO_USER'] == "pi" # only applies on Raspberry Pis
```

The rest of the playbook is quite straightforward, with the following steps:
- Install docker on all nodes
- ...

??? bug "TODO"
Ansible for setting up the Swarm Mode
My playbook is based on Jeff Geerling's Turing Pi 2, where I swapped K3s for Docker Swarm Mode: https://github.com/geerlingguy/turing-pi-2-cluster
Expand Down

0 comments on commit 168538f

Please sign in to comment.