CosmolinkOS Board now

What is Docker? Docker in plain words

FOR BEGINNERS3 MIN READ
COSMO
COSMO'S SHORT ANSWER

Docker is a tool that runs apps in containers. Each container is a sealed box with the app and everything it needs, so apps install the same way everywhere and don't clash with each other.

What is Docker? It's the tool most home labs use to install and run apps. This plain-English guide explains Docker for beginners: images, containers, volumes and Compose, and why it makes a home lab easier.

Colourful glowing shipping containers stacked on a floating space dock while a crane lifts one more.
Each app lives in its own container, and the containers stack neatly on one machine.

01What is Docker?

Think of a lunchbox. Instead of carrying each part of your lunch loose in your bag, you pack it all in one box that keeps everything together and away from everything else.

Docker does that for apps. Before Docker, installing an app often meant installing other bits it depended on, and two apps could need different versions of the same bit. Docker packs each app with its own bits, in its own container.

02The four Docker words you need

An image is the packed app: the recipe and the ingredients. You download it once and don't change it. Updating an app means downloading its newer image.

Here is a whole Compose file for Uptime Kuma, a popular app that checks your websites are up:

services:
  uptime-kuma:
    image: louislam/uptime-kuma:2
    ports:
      - "3001:3001"
    volumes:
      - ./data:/app/data
    restart: unless-stopped

It names the image, opens the app on port 3001, keeps its data in a data folder and restarts it if it stops.

03What is Docker used for in a home lab?

  • EASY INSTALLSOne command or one click per app
  • EASY UPDATESDownload the new image, restart, done
  • NO CLASHESEach app keeps its own bits to itself
  • EASY CLEAN-UPDelete a container and it's gone
PING'S TIP

Stuck on a container that won't start? Read its logs first. The last few lines usually say what is wrong.

04How to get Docker

  1. Windows or Mac: install Docker Desktop.
  2. Linux: install Docker Engine from your system's package manager or Docker's own guide.
  3. A NAS: many NAS systems have Docker built in. TrueNAS, for example, runs its apps on Docker.
COSMO'S TIP

Keep each app's data in a volume or a folder you back up. Then you can delete and recreate containers without worrying.

05What this means for CosmolinkOS

GOOD TO KNOW

CosmolinkOS runs in Docker, for example as an app on TrueNAS. More platforms are planned. It needs at least a 2-core processor, 4 GB of memory (8 GB on TrueNAS) and 10 GB free on an SSD. See what you need.

06Questions people ask

Is Docker free?

Docker Engine is free and open source. Docker Desktop is free for personal use and small businesses, and larger companies need a paid plan.

Is Docker a virtual machine?

No. A virtual machine runs a whole extra operating system. A container shares your computer's system and only packs the app, so it is much lighter.

What is the difference between a Docker image and a container?

An image is the app's package. A container is that package running. One image can run as many containers as you like.

Do I need to learn commands to use Docker?

A few help, but many home lab systems let you install Docker apps from a web page. Compose files let you copy a working setup instead of typing it out.

Related guides: 12 home lab ideas to try.

WAITLIST OPENBe first to hear when CosmolinkOS is ready to try.

▸Keep going