Install/update docker, tools and firewall rules

Install or update docker

For a fresh install follow https://docs.docker.com/engine/install/ubuntu/

πŸ“˜

We recommend following the instructions to run docker without sudo

Follow these instructions: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
This should amount to:

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

#now test with, this should print `hello world`
docker run hello-world

# Ctrl-C to exit

For an update just run sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Install tools

sudo apt update && apt install -y jq tree

Add ufw rules

In case you want to enable the ufw firewall down the line you need to have the following rules.

🚧

Replace 192.168.88.0 with your own network.

If your IP is e.g. 192.168.100.243, set it to 192.168.100.0


sudo ufw allow from 172.18.0.0/16 to any port 443 proto tcp 
sudo ufw allow from 172.18.0.0/16 to any port 123 proto udp 

sudo ufw allow from 192.168.88.0/24 to any port 443 proto tcp
sudo ufw allow from 192.168.88.0/24 to any port 8554:8654 proto tcp
sudo ufw allow from 192.168.88.0/24 to any port 8554:8654 proto udp
sudo ufw allow from 192.168.88.0/24 to any port 60000:60100 proto udp
sudo ufw allow from 192.168.88.0/24 to any port 61000:61100 proto udp
sudo ufw allow from 192.168.88.0/24 to any port 53 proto udp
sudo ufw allow from 192.168.88.0/24 to any port 53 proto tcp

What’s Next