Flexible

Docker hosting

Run any containerized application. Deploy to a dedicated VPS in seconds — database auto-created, SSL installed, firewall locked down from the first boot.

Any image

Versions

—

Database

Docker

Category

SSL included
Firewall locked
DB auto-created
Live in minutes
Overview

What is Docker?

Docker is a platform for building, shipping and running applications inside lightweight, portable containers. Containers package an application and its dependencies together so the application runs consistently across different environments without requiring a full virtual machine or host-level dependency installation.

A Docker container shares the host operating system kernel but isolates the application's filesystem, processes and network. This makes containers faster to start, lighter to run and easier to manage than traditional virtual machines while still providing strong isolation between applications.

Docker is commonly used to run web applications, APIs, databases, message brokers, background workers, development environments and infrastructure services. Docker Compose can define multi-container applications with networks, volumes and shared configuration.

SharkCluster provides the server environment to run Docker containers. You can deploy Docker images, configure port mappings, manage persistent volumes, set restart policies, run Docker Compose stacks and manage containers through SSH or the SharkCluster panel.

Quick facts

Version
Any image
Database
—
Category
Docker
  • SSL included
  • Firewall locked
  • DB auto-created
  • Live in minutes
Why SharkCluster

Why Docker on SharkCluster?

Run any application

Deploy any application that has a Docker image, regardless of its programming language, framework or runtime requirements.

Consistent environments

Containers package application dependencies with the application so it runs the same in development, staging and production.

Isolation

Each container runs in its own isolated environment, preventing conflicts between different applications on the same server.

Port mapping

Expose application ports to the host network and route traffic through nginx or other reverse proxies.

Persistent volumes

Mount host directories or named volumes into containers to persist database files, uploads, logs and other application data.

Restart policies

Configure containers to restart automatically after crashes, server reboots or process failures.

Docker Compose

Define multi-container applications with networks, volumes and shared configuration using Docker Compose files.

Lightweight

Containers share the host kernel and start in seconds, using fewer resources than full virtual machines.

Features

What you get with Docker

  • Run any Docker image

  • Docker Compose support

  • Port mapping and exposure

  • Persistent volume mounts

  • Automatic container restart

  • Container log management

  • Custom Dockerfile support

  • Image pull from public registries

  • Multi-container application stacks

  • Environment variable configuration

  • Network isolation between containers

  • Resource limits and constraints

  • Domain and HTTPS support through reverse proxy

  • Git-based deployment workflow

  • SSH access for container management

  • Firewall and security controls

Use cases

What Docker is built for

Web applications

Run any web application framework or custom application inside a container with port mapping and reverse proxy.

API services

Deploy REST, GraphQL or gRPC APIs inside containers with automatic restart and health monitoring.

Databases

Run PostgreSQL, MySQL, MongoDB, Redis and other databases inside containers with persistent volume storage.

Message brokers

Deploy RabbitMQ, NATS, Kafka and other messaging systems inside containers.

Development environments

Create reproducible development environments with Docker Compose stacks that match production.

Background workers

Run queue workers, cron processors and background task runners inside dedicated containers.

Infrastructure services

Run monitoring, logging, proxy and other infrastructure services as containers alongside applications.

System requirements

Server specs for
Docker

Not sure which plan to pick? The panel warns you before you deploy so you can choose the right size the first time.

  • Minimum specs shown before deploy
  • Panel blocks deploy if server is undersized
  • Upgrade path available inside the panel
Docker
A current Docker Engine version is recommended.
Operating system
Linux recommended for production deployments.
Web server
nginx recommended as a reverse proxy for containerized applications.
Memory
2 GB RAM minimum; 4 GB+ recommended for production.
CPU
1–2 vCPU minimum; 2+ vCPU recommended for production.
Storage
20 GB+ SSD recommended for images, containers, volumes and application data.
Architecture

How Docker fits together

1

Domain

Your domain or subdomain points to the SharkCluster server through DNS.

2

nginx reverse proxy

nginx terminates TLS and forwards public traffic to the container's exposed port.

3

Docker engine

The Docker daemon manages container lifecycle, networking, volumes and image operations.

4

Container

The application runs inside an isolated container with its own filesystem, process space and network configuration.

5

Volumes

Persistent volumes or bind mounts store application data outside the container's writable layer.

6

Network

Docker networks connect containers to each other and to the host network as configured.

Get started

After your Docker deploy

  1. 1

    Choose a server

    Select a server with enough CPU, RAM and storage for your container workloads.

  2. 2

    Deploy the container

    Pull and run a Docker image, deploy a Dockerfile or use Docker Compose to start your application stack.

  3. 3

    Configure ports

    Map container ports to host ports so the application can receive traffic from the reverse proxy.

  4. 4

    Configure volumes

    Mount persistent volumes or bind mounts for application data, databases, uploads and configuration files.

  5. 5

    Configure restart policy

    Set the container to restart automatically after crashes or server reboots.

  6. 6

    Configure the domain

    Point your domain to the server and configure nginx to proxy traffic to the container.

  7. 7

    Enable HTTPS

    Install and configure the SSL certificate for the domain.

  8. 8

    Test the application

    Verify the application responds correctly, data persists across restarts and the container behaves as expected.

Deployment

Ship Docker your way

Pull the image

Pull the Docker image from the registry or build a custom image from a Dockerfile.

Configure the container

Set environment variables, port mappings, volume mounts and restart policies.

Start the container

Run the container or use Docker Compose to start the full application stack.

Configure the reverse proxy

Set up nginx to forward traffic from the public domain to the container port.

Enable HTTPS

Configure SSL for the domain and verify HTTPS access to the containerized application.

Verify deployment

Test the application, check container logs and verify data persistence.

Performance

Keeping Docker fast

Use minimal base images

Use slim or Alpine-based images to reduce container size, startup time and attack surface.

Manage container resources

Set CPU and memory limits to prevent containers from consuming all host resources.

Use multi-stage builds

Reduce final image size by building in a build stage and copying only production artifacts.

Optimize layer caching

Order Dockerfile instructions to maximize cache hits and avoid rebuilding unchanged layers.

Use volumes for data

Store persistent data in volumes rather than inside the container's writable layer.

Monitor container health

Monitor CPU, memory, disk I/O and network usage for each container and the host system.

Deployment checklist

Before you go live

  • Docker image or Dockerfile is ready

  • Environment variables are configured

  • Port mappings are correct

  • Volumes are configured for persistent data

  • Restart policy is set

  • Container logs are accessible

  • Domain DNS points to the server

  • Reverse proxy is configured

  • HTTPS certificate is active

  • Application is accessible through the domain

  • Data persistence is verified

  • Container restart behavior is tested

Production checklist

Ready your Docker for launch

  • Use a minimal and trusted base image

  • Set resource limits (CPU and memory)

  • Configure restart policy

  • Enable HTTPS through reverse proxy

  • Use environment variables for configuration

  • Keep secrets out of image layers

  • Mount volumes for persistent data

  • Configure container logging

  • Monitor container health and resource usage

  • Keep Docker images updated

  • Remove unused images and containers

  • Configure backups for volume data

  • Test container restart and recovery

  • Restrict container network access

Useful commands

Working with Docker

Check Docker version

Display the installed Docker Engine version.

bash
docker --version

Pull an image

Download a Docker image from a registry.

bash
docker pull <image>

Run a container

Start a detached container with port mapping.

bash
docker run -d -p 8080:80 --name myapp <image>

List running containers

Display currently running containers.

bash
docker ps

List all containers

Display all containers including stopped ones.

bash
docker ps -a

View container logs

Display logs for a specific container.

bash
docker logs <container>

Stop a container

Gracefully stop a running container.

bash
docker stop <container>

Start a stopped container

Restart a previously stopped container.

bash
docker start <container>

Restart a container

Stop and start a container.

bash
docker restart <container>

Remove a container

Remove a stopped container.

bash
docker rm <container>

Docker Compose up

Start all services defined in docker-compose.yml in detached mode.

bash
docker compose up -d

Docker Compose down

Stop and remove all services defined in docker-compose.yml.

bash
docker compose down
Troubleshooting

Common Docker issues & fixes

Container exits immediately

Cause
The container's main process may be crashing, an environment variable may be missing or a required volume may not be mounted.
Solution
Check container logs with docker logs, verify environment variables and ensure required volumes and ports are configured.

Port already in use

Cause
Another process or container is already using the host port mapped to the container.
Solution
Identify the process using the port, stop or reconfigure it and restart the container.

Cannot pull image

Cause
The image name may be incorrect, the registry may be unavailable or authentication may be required.
Solution
Verify the image name and tag, check registry access and configure registry credentials if needed.

Container has no network access

Cause
The Docker network configuration may not provide external connectivity or firewall rules may block traffic.
Solution
Check the Docker network configuration, verify port mappings and review firewall rules.

Data is lost after container restart

Cause
The container may not have a persistent volume or bind mount for the data directory.
Solution
Configure a named volume or bind mount for directories that need to persist across container restarts.

Container uses too much memory

Cause
The application inside the container may have a memory leak, or no memory limit has been set.
Solution
Set memory limits for the container, investigate the application's memory usage and fix any leaks.

Docker Compose services do not start

Cause
A service may depend on another service that is not ready, or the compose file may contain configuration errors.
Solution
Check docker compose logs, verify service dependencies and validate the compose file configuration.
Security config

Hardened before your first request

Every deploy is locked down from boot — closed firewall, valid SSL, and restricted access by default.

  • Use trusted and verified Docker images from official sources.

  • Keep Docker images and base images updated.

  • Run containers as non-root users where possible.

  • Set resource limits to prevent containers from consuming all host resources.

  • Do not store secrets in Docker images or environment variables exposed in compose files.

  • Use Docker secrets or external secret management for sensitive configuration.

  • Restrict container network access to only required ports and services.

  • Use read-only filesystems where the application does not need to write.

  • Enable Docker Content Trust for image verification where supported.

  • Monitor container logs and resource usage.

  • Keep Docker Engine updated.

  • Use a firewall to restrict access to exposed container ports.

Database

The data layer behind Docker

Containerized databases

Run PostgreSQL, MySQL, MongoDB, Redis and other databases inside containers with persistent volume storage.

Persistent volumes

Always mount persistent volumes for database data directories so data survives container restarts and removals.

Database networking

Use Docker networks to connect application containers to database containers securely.

Backups

Back up database volumes independently from containers so data can be restored even if the container is removed.

Environment

Docker environment configuration

Environment variables

Pass environment-specific configuration to containers through environment variables or environment files.

Docker secrets

Use Docker secrets or external secret management for sensitive values such as database passwords and API keys.

Logging

Configure container logging drivers and review logs using docker logs or a centralized logging solution.

Cron jobs

Automations that run on schedule

Scheduled tasks in containers

Run scheduled tasks inside containers using the host's cron service or a dedicated scheduler container alongside the application.

Avoid running cron inside the main container

Keep the main application container focused on serving requests. Run scheduled tasks in a separate sidecar container.

Security checklist

Lock down Docker from day one

  • Use trusted base images

  • Keep images updated

  • Run as non-root user

  • Set resource limits

  • Do not expose secrets in images

  • Use secret management

  • Restrict network access

  • Use read-only filesystems where possible

  • Enable image verification

  • Monitor container logs

  • Keep Docker Engine updated

  • Firewall restricts exposed ports

Upgrade safely

A safe Docker upgrade path

  1. 1

    Back up volumes

    Back up all persistent volumes before upgrading images or modifying the Docker Compose configuration.

  2. 2

    Test on staging

    Deploy the new image or configuration to a staging environment before updating production.

  3. 3

    Pull the new image

    Pull the updated image and verify it is the correct version before replacing the running container.

  4. 4

    Update and restart

    Update the container or compose configuration and restart with the new image.

  5. 5

    Verify

    Test the application, check container logs and verify data persistence after the upgrade.

  6. 6

    Rollback if necessary

    If the new image has issues, stop the new container and start the previous version using the backed-up configuration.

Take a snapshot before every upgrade so a bad release can be rolled back in minutes.

Who owns what

We manage the server, you own the store

SharkCluster manages

  • VPS infrastructure
  • Docker Engine
  • nginx reverse proxy
  • SSL
  • Firewall
  • Server-level cron
  • Backups where enabled
  • Container deployment infrastructure

You manage

  • Docker images
  • Container configuration
  • Docker Compose files
  • Environment variables
  • Volume data
  • Application code
  • Database data
  • Port mappings
  • Application monitoring

Everything below the application line — from nginx to backups — is infrastructure. Your code, content and store configuration are always yours, and you keep full SSH and root access.

FAQ

Frequently Asked Questions

The questions we hear most from people deploying Docker on SharkCluster.

Contact support

Yes. You can pull and run any Docker image from public registries. Private registries can be used with appropriate authentication.

Docker does not include a database by default, but you can run PostgreSQL, MySQL, MongoDB, Redis and other databases inside containers.

Use Docker volumes or bind mounts to store persistent data outside the container's writable layer. Data in volumes survives container restarts and removals.

Yes. Docker Compose can define multi-container applications with networks, volumes and shared configuration.

Yes. You can run multiple containers on the same server as long as the server has enough CPU, RAM and storage. Use Docker networks to isolate container communication.

Map the container port to a host port and configure nginx or another reverse proxy to forward public traffic to the container.

Yes. Configure nginx as a reverse proxy with SSL in front of the container and route public traffic through HTTPS.

One-click setup

From deploy to live in minutes

Stack configured

Runtime, process manager and config files set up for you.

— wired

Database created with a user and credentials in your config.

SSL + firewall

Free Let's Encrypt certificate and closed-by-default UFW rules.

Deploy anytime

Push with Git, or use the built-in file manager and ZIP upload.

Start your journey today

How do you start
with SharkCluster?

To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.

No lock-in contracts
No credit card required
Dedicated DevOps manager