From 3eb243f3e6e6614d1d5e4794d26fff6e5379dd0e Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Fri, 12 Jul 2024 14:18:43 +0200 Subject: [PATCH] Create README.md --- ubuntu/README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ubuntu/README.md diff --git a/ubuntu/README.md b/ubuntu/README.md new file mode 100644 index 0000000..163853e --- /dev/null +++ b/ubuntu/README.md @@ -0,0 +1,40 @@ +``` +apt update +apt upgrade + +apt install git pkg-config libssl-dev curl mc argon2 ca-certificates net-tools + +install -m 0755 -d /etc/apt/keyrings + +curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc + +chmod a+r /etc/apt/keyrings/docker.asc + +echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ + sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + +apt-get update + +apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin + +echo "{" > /etc/docker/daemon.json +echo ' "iptables": false' >> /etc/docker/daemon.json +echo "}" >> /etc/docker/daemon.json + +systemctl restart docker + +ufw allow in on docker0 +ufw route allow in on docker0 +ufw route allow out on docker0 + +ufw allow 22 +ufw allow 443 +ufw enable + +ufw status verbose + +docker run hello-world +``` +