Files
apps/docker-install.sh
2026-04-07 15:42:36 +05:30

8 lines
433 B
Bash

sudo apt remove -y $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut -f1)
sudo apt-get install -y uidmap
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Don't install rootless because compose has certain things like setting ulimits which only rooted docker can do.
# sudo loginctl enable-linger ubuntu
# dockerd-rootless-setuptool.sh install