Skip to content
Servers and Linux2 min read

What is Docker?

Short answer

Docker is a platform for running applications inside containers: isolated environments that bundle the app, its libraries and its configuration, so it runs the same on a developer's laptop and on any server. Containers share the host's operating-system kernel, which makes them lighter and faster to start than virtual machines.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Key concepts
  2. Example: a Dockerfile for a Node.js app
  3. Containers vs virtual machines
  4. Common misconceptions
  5. On ArabyHost

Before Docker, the classic complaint was “it works on my machine but not on the server”, caused by different language and library versions. Docker solves that by packaging the app together with its entire environment into one image that runs anywhere.

Key concepts

Term Meaning
Image A read-only template holding a base system, the app and its libraries
Container A running instance of an image
Dockerfile A text file describing how to build the image
Docker Compose A compose.yaml file that runs several containers together, e.g. an app and a database
Volume Persistent storage that lives outside the container

Example: a Dockerfile for a Node.js app

FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
CMD ["node", "server.js"]

Then build and run it:

docker build -t myapp .
docker run -d -p 3000:3000 myapp

Containers vs virtual machines

A virtual machine, such as a VPS on KVM, runs a full operating system with its own kernel. A container shares the host’s kernel and isolates only processes, files and networking, so it starts in seconds and uses less memory, but its isolation is weaker than a VM’s.

Common misconceptions

  • Not every project needs Docker: a simple PHP, Node.js or Python app runs fine without it.
  • Docker needs broad privileges: running the Docker service usually requires root access or something close to it.
  • Data inside a container disappears: delete the container and its files go with it, unless they live in a volume.

On ArabyHost

ArabyHost doesn’t offer Docker or root access, and there are no VPS plans yet (they’re planned). Still, much of what people put in a container runs directly on the AI and Developer plans: Node.js 20 and 24, Python 3.9-3.12 and PHP 8.1-8.3, with SSH jailed in CageFS, Git and Composer. Apps run through the CloudLinux selectors (Phusion Passenger), background workers are kept alive with cron, and you can deploy from GitHub. See the Node.js deployment guide. If your project depends on several Docker Compose services or needs a GPU, it needs its own server.

FAQ

Do I need Docker to run a Node.js or Python app?

No. The app runs directly as long as the right language version is available and you install dependencies with npm or pip. Docker helps when you need identical environments across machines or several services working together.

What's the difference between an image and a container?

An image is a read-only template built from a Dockerfile; a container is a running instance of that image. You can run several containers from one image.

Why doesn't shared hosting support Docker?

Running the Docker service requires broad, near-root privileges on the system, which doesn't fit a server that hosts many accounts isolated from each other.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.