Skip to content
Live $300 credit for new accounts Valid for 60 days from account creation Get started →

Docker

Docker is an open-source platform for building, shipping, and running applications in containers. This image provides a clean Ubuntu 24.04 environment with Docker CE and Docker Compose pre-installed, ready for you to deploy any containerised workload.

ComponentVersion
Docker CELatest stable
Docker Compose pluginLatest stable
Ubuntu24.04 LTS
ssh ubuntu@<your-vm-ip>

There is no first-boot configuration. Docker starts immediately after the VM boots.

docker version
docker compose version

The ubuntu user is pre-added to the docker group, so you can run Docker commands without sudo.

docker run --rm hello-world

Create a docker-compose.yml file and bring up your stack:

docker compose up -d
# List running containers
docker ps
# View logs for a container
docker logs <container-name> -f
# Stop a container
docker stop <container-name>
# Pull the latest image
docker pull <image-name>
# Check Docker service status
systemctl status docker
# Restart Docker
sudo systemctl restart docker

Docker log files are limited to 10 MB per file with a maximum of 3 rotated files to prevent disk exhaustion.

No application ports are open by default. UFW is enabled and allows SSH (port 22) only.

When you publish container ports with -p or ports: in Compose, Docker manages its own iptables rules. These rules bypass UFW, so a published port (e.g. -p 80:80) is accessible externally regardless of your UFW configuration.

To restrict a published port to a specific IP, bind it explicitly:

docker run -p <trusted-ip>:80:80 <image>

Or in docker-compose.yml:

ports:
- '<trusted-ip>:80:80'