write 2nd swarm post
This commit is contained in:
@ -3,7 +3,7 @@ title: "Setup a Docker Swarm cluster for less than $30 / month"
|
||||
date: 2022-02-13
|
||||
description: "Build an opinionated containerized platform for developer..."
|
||||
tags: ["docker", "swarm"]
|
||||
slug: build-your-own-homelab-docker-swarm-cluster
|
||||
slug: build-your-own-docker-swarm-cluster
|
||||
draft: true
|
||||
---
|
||||
|
||||
@ -429,4 +429,6 @@ You should have now good protection against any unintended external access with
|
||||
|
||||
And that's finally it !
|
||||
|
||||
We've done all the boring nevertheless essential stuff of this tutorial by preparing the physical part before attacking the more interesting one with cluster initial installation.
|
||||
We've done all the boring nevertheless essential stuff of this tutorial by preparing the physical layer + OS part.
|
||||
|
||||
Go to the [Part II]({{< ref "/posts/2022-02-18-build-your-own-docker-swarm-cluster-part-2" >}}) for the serious work !
|
||||
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
title: "Setup a Docker Swarm cluster - Part II"
|
||||
date: 2022-02-18
|
||||
description: "Build an opinionated containerized platform for developer..."
|
||||
tags: ["docker", "swarm"]
|
||||
slug: build-your-own-docker-swarm-cluster-part-2
|
||||
draft: true
|
||||
---
|
||||
|
||||
{{< lead >}}
|
||||
Build your own cheap while powerful self-hosted complete CI/CD solution by following this opinionated guide 🎉
|
||||
{{< /lead >}}
|
||||
|
||||
This is the **Part II** of more global topic tutorial. [Go to first part]({{< ref "/posts/2022-02-13-build-your-own-docker-swarm-cluster" >}}) before continue.
|
||||
|
||||
## Installation of Docker Swarm
|
||||
|
||||
### Docker engine
|
||||
|
||||
Now we must do the classic Docker installation on each stateless servers. Repeat following commands on `manager-01`, `worker-01` and `runner-01`.
|
||||
|
||||
```sh
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
|
||||
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||
|
||||
sudo usermod -aG docker $USER
|
||||
```
|
||||
|
||||
Then logout and use `docker run hello-world` and be sure all is OK. Follow [official installation](https://docs.docker.com/engine/install/ubuntu/) if not.
|
||||
|
||||
### Docker Swarm
|
Reference in New Issue
Block a user