Marketplace
Developer Tools

Docker

Container runtime and Compose, ready to run.

Deploy this app

About

Installs Docker Engine, the containerd runtime and the Docker Compose plugin from Docker's official apt repository, then enables the service.

Your SSH user is added to the docker group after the script finishes; reconnect once for group membership to take effect, or continue using sudo docker in the meantime.

Install script (runs as cloud-init user-data on first boot)

#!/bin/bash
set -e
apt-get update -y
apt-get install -y ca-certificates curl gnupg
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
. /etc/os-release
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $VERSION_CODENAME stable" > /etc/apt/sources.list.d/docker.list
apt-get update -y
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl enable --now docker
usermod -aG docker ubuntu 2>/dev/null || true
echo "Docker $(docker --version) installed." > /root/marketplace-install.log