How to Run Docker Containers on a Linux VPS in India
Docker hosting in India means a Linux VPS with root access where you install Docker Engine and run containers; shared hosting cannot run the daemon because containers share the host kernel. A small stack fits in 2 vCPU and 4 GB RAM. WebJi® VPS plans start from ₹499 a month, configuration quoted before you pay.
For Indian developers choosing between shared hosting, a Docker VPS and Kubernetes for containerised apps.
knowledge
- Read time
- 4 min
- Sections
- 7
- Updated
- 14 Nov 2026
- Written by
- WebJi® team
Last editorial update: 15 November 2026.
What does Docker hosting actually mean?
Docker hosting means a Linux server you control — a VPS with root — running Docker Engine, on which your applications ship as containers; it is not a shared cPanel plan and not a product name by itself. The container primer covers the vocabulary; for hosting you need four words:
- Image: the packed application plus its dependencies.
- Container: one image running as an isolated process.
- Compose: one YAML file that starts several containers together.
- Volume: disk that survives a container being replaced.
The reason a container is cheap to run is the same reason it needs a server you control: containers share the host machine's Linux kernel (per Docker's own docs, an image is tens of megabytes and starts in seconds, while a virtual machine carries a full guest OS of tens of gigabytes). That shared-kernel design is a isolation boundary a shared host cannot safely draw between hundreds of unrelated accounts — which leads to the next question.
How much server does a Docker stack need?
Size the VPS from the containers, not from Docker itself: add up what the app and database need, then add roughly 1 GB of RAM for the operating system underneath. The engine is small; your workload is not.
| Workload | Sample fit | Why |
|---|---|---|
| One web container plus a small database | 2 vCPU, 4 GB RAM (VPS-Start class) | Room for the app, the DB and the OS |
| A Compose stack or a database with real data | 4 vCPU, 8 GB RAM (VPS-Growth class) | Several processes plus page cache |
| Many services, or image builds on the server | 8 vCPU, 16 GB RAM (VPS-Pro class) | Builds are RAM-hungry alongside the apps |
Build images on your laptop or in CI when the VPS has only 2 vCPU, then pull the finished image — a build plus a running stack on one small server is the classic out-of-memory shape.
How do you install Docker Engine on Ubuntu?
Install from Docker's own apt repository on Ubuntu 24.04 or 22.04 — the install worked when hello-world prints its message and exits cleanly. These steps follow Docker's documented repository route and install the Compose plugin with the engine.
- SSH in as a sudo user and run
sudo apt-get update, thensudo apt-get install -y ca-certificates curlandsudo install -m 0755 -d /etc/apt/keyrings. - Save Docker's signing key:
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.ascandsudo chmod a+r /etc/apt/keyrings/docker.asc. - Add the stable repository for your release, then install:
sudo apt-get updatefollowed bysudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin. - Verify with
sudo docker run --rm hello-worldanddocker compose version.
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Skip the docker group if only sudo users should control the daemon; if you do add your user, log out and back in before testing.
How do you deploy the first container?
A first deploy is one image, one published port and a name you can stop: run it detached, restart it unless stopped, and check it with docker ps. If the browser cannot connect, the cause is almost always the host firewall or a container that exited.
sudo docker run -d --name web --restart unless-stopped -p 8080:80 your-image
sudo docker ps
Browse to http://SERVER:8080 — the page loading proves the port map. Use -p 80:80 only when nothing else binds port 80 on that host. Put Nginx in front on 443 for public traffic, the same layout as the HTTP/2 proxy guide shows.
How do volumes keep database data safe?
A container's own writable layer is deleted with the container, but a named volume is not — so any database you care about must live on one. Create it, mount it, and the data survives every replace-and-restart cycle.
sudo docker volume create dbdata
sudo docker run -d --name db -v dbdata:/data/db mongo
That is the usual MongoDB layout on one VPS: the database container owns the volume, the app container reaches it over a Compose network. Dump the database or copy the volume before deleting dbdata — the volume is the only copy unless you have backups, which is what VPS server backup is for.
When is one Docker VPS enough, and when does Kubernetes matter?
One VPS is enough while one person can SSH in, the stack fits in the RAM you ordered, and a short pause for an update is acceptable — Compose restarts the containers on that one machine. A single site, a small API or one internal tool does not need a cluster.
Kubernetes earns its complexity when the same stack already runs on several servers, when you need rolling updates with no single host, or when many services ship daily. A cluster does not make a 4 GB VPS larger. To price a server for your stack, ask for a VPS quote before you pay; support@webji.services answers round the clock in Hindi and English.
Frequently asked questions
Can I run Docker on shared hosting in India?
No. The Docker daemon needs root and the host kernel, which a shared plan cannot expose to one account. Use a Linux VPS with root access and install Docker Engine yourself.
What does Docker hosting cost at WebJi®?
A Linux VPS starts from ₹499 a month before 18% GST, with the configuration and final amount quoted before you pay; there is no separate Docker fee inside that quote. Shared plans (₹299–₹699 a month, read 15 November 2026) cannot run containers.
How much RAM does a Docker stack need?
Add what the app and database need, plus about 1 GB for the OS. One web container and a small database fit in 4 GB; a Compose stack or real dataset wants 8 GB; building images on the server wants 16 GB.
How do I know Docker installed correctly?
Run sudo docker run --rm hello-world — it should print its hello message and exit cleanly — and docker compose version for the plugin. "Command not found" means the install did not finish.
Is a container better than installing the app directly on the VPS?
Use containers when you want the same image on your laptop and the server and easy replace-and-restart cycles. Install directly when the app is one OS package and you prefer patching through apt. Neither choice changes the server size much.
When should I move from one VPS to Kubernetes?
When the same stack runs on several servers or you need rolling updates without a single point of failure. Until then one VPS with Compose is simpler to run and back up; a cluster never replaces missing RAM.
Last editorial update: 15 November 2026. Prices follow the dated sources on this page; checkout confirms current charges.
Ready to get started with WebJi®?
Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.