> For the complete documentation index, see [llms.txt](https://smartvds.gitbook.io/smartvds-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartvds.gitbook.io/smartvds-docs/docker-guide.md). Agents can also search and read this documentation through its [MCP server](https://smartvds.gitbook.io/smartvds-docs/~gitbook/mcp).

# Docker Guide

An introduction to Docker containers and choosing a suitable hosting environment.

Docker packages applications and their dependencies into containers, making deployments more consistent across environments. Containers share a host kernel, unlike traditional virtual machines that run their own guest operating systems.

### Choosing a hosting environment

* VPS or VDS: suitable for websites, APIs, development environments and modest container workloads. Check that the provider supports Docker and the required kernel features.
* Dedicated servers: useful when workloads need predictable resources, substantial storage or greater control over hardware.

### Planning a deployment

Estimate CPU, RAM and disk requirements based on the applications rather than Docker alone. Use persistent volumes for application data, restrict exposed ports, keep images updated and maintain backups outside the container host.

Docker Compose can help define and manage multi-container applications.

### Further reading

The [Docker guide for VPS, VDS and dedicated servers](https://smartvds.org/hosting-basics/docker-vps-vds-dedicated-server-guide/) from SmartVDS covers hosting considerations and practical deployment basics.
