Skip to main content
Docker lets you run apps inside isolated containers, so you never have to fight with system-wide dependencies again. Docker Compose adds a simple YAML file for defining multi-container setups. Together, they are the fastest way to deploy pretty much anything on your Opus Host VPS.

Install Docker

1

Update the package index and install prerequisites

2

Add Docker's official GPG key and repository

3

Install Docker Engine and Compose

4

Verify the installation

Run Docker without sudo

Add your user to the docker group so you can run docker commands without sudo:
Log out and back in for the change to take effect.
Anyone in the docker group effectively has root access to the host. Only add trusted users.

Your first Compose stack

Create a folder for your project and a docker-compose.yml file:
Example: an Nginx web server exposed on port 80.
Start it in the background:

Common commands

Containers survive reboots when you use restart: unless-stopped in your compose file. No systemd unit required.