Is what it is, just a page so I don’t have to remember all this again.
Do: Use this if you cant remember the commands
Don’t: Use this if you’ve never done this before, it’s not written for you.
Deploy Ubuntu to a vm, 24.x worked fine, I’m sure current is fine.
sudo apt update && sudo apt upgrade -y
## you might want nano?
## depends if you used minimal.
## #ViSux
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
## Get current gpg from website if later than say, 2026?
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
## Don't Skip it, even though you know you want to.
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io
## Test Install
docker --version
## Init.d
sudo systemctl enable docker
And we’re done
Don’t go looking for where to put the composer file, can go anywhere, you decide. Home is fine too, but, you know…
To be lazy and edit configs in containers, pull the file to local cd via;
docker cp <dockerid>:/path/to/the/file .
To jump into bash
(This is basically useless without the common toolset btw).
docker <dockerid> -exec /bin/bash
