Scripts we use internally at Omnicore Networks. You're welcome to use them too.
Everything here is free to use, fork, and modify. Pull requests probably won't get merged unless you've talked to a maintainer first. Reach out to alex (GitHub: @squishylemon).
- Ubuntu Server (scripts are written for that)
sudoor root access where noted- A network connection for package downloads
Installs Docker Engine on Ubuntu Server from Docker's official apt repo.
What it does, step by step:
- Checks you're on Ubuntu and running as root (or via
sudo). - Removes old
docker.io/docker-enginepackages if they're installed. - Installs
curl,ca-certificates, andgnupg. - Adds Docker's GPG key and apt source (skips if already there).
- Installs
docker-ce, the CLI,containerd, Buildx, and the Compose plugin. - Enables and starts the
dockerservice. - Adds your sudo user to the
dockergroup so you can run Docker withoutsudo(after re-login). - Runs
docker run hello-worldto confirm it works.
Run it:
curl -fsSL https://raw.githubusercontent.com/OpiumNetworks/public-tools/main/scripts/docker/setup-ubuntu-server.sh -o setup-docker.sh
chmod +x setup-docker.sh
sudo ./setup-docker.shOr clone the repo and run the script from your checkout:
git clone https://github.com/OpiumNetworks/public-tools.git
cd public-tools
sudo bash scripts/docker/setup-ubuntu-server.shAfter install: log out and back in (or reboot) if you were added to the docker group. Then try:
docker ps
docker compose versionTested on Ubuntu 22.04 and 24.04 LTS.
Fork and change what you need for your own setup. If you want something merged upstream, open an issue or message alex (@squishylemon) before sending a PR.
Use these scripts however you like. No warranty - test on your own systems first.