Docker Install and Setup
Verify the Docker engine, configure context, and check versions.
- docker install
- docker info
- docker version
- docker context
- docker login
Docker Install and Setup
Verify the Docker engine, configure context, and check versions.
Commands
| Command | What it does |
|---|---|
docker --version && docker compose version | Verify engine and compose plugin |
docker info | Show engine details, storage driver, resources |
docker context ls | List daemon contexts (local/remote) |
docker login | Authenticate to a registry |
docker system df | Disk used by images, containers, volumes |
Example
docker --version
docker info | head -20
docker system df
FAQ
Docker Desktop vs Engine on Linux?
Desktop bundles a VM plus GUI; Linux servers run the native engine (docker-ce) with lower overhead.
Why is docker info slow?
It queries the daemon live; on first run the daemon may still be starting — retry after a few seconds.
Preguntas frecuentes
Docker Desktop vs Engine on Linux?
Desktop bundles a VM plus GUI; Linux servers run the native engine (docker-ce) with lower overhead.
Why is docker info slow?
It queries the daemon live; on first run the daemon may still be starting — retry after a few seconds.
Docker
Docker Images
Pull, list, tag, inspect, and remove images confidently.
Docker Containers
Run, list, stop, and clean up containers in daily work.
Docker Run Options
The flags that matter: detach, ports, env, volumes, limits.
Docker Exec and Logs
Get a shell inside containers and read their logs effectively.