Skip to content

Docker Stuff

Install docker

Bash
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Docker Compose:
Bash
sudo apt install -y docker-compose
Add user to docker group:
Bash
sudo usermod -aG docker $USER
Put it in a script

Bash
#!/bin/bash

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo apt install -y docker-compose
sudo usermod -aG docker $USER
Or simply run:

Bash
curl -fsSL https://get.docker.com -o get-docker.sh && \
sudo sh get-docker.sh && \
sudo usermod -aG docker $USER && \
sudo apt install -y docker-compose && \
echo "" && \
echo "logout and login back so the $USER pickups docker group"

Basic Docker Stuff

  • Dockerfile
  • docker compose stacks
  • docker compose for swarm stack
Back to top