liveBook · Manning

Docker CLI

As explained in Kubernetes in Action, Second Edition

The Docker CLI is the command-line client for sending container-management commands to Docker.

The Docker CLI is the command-line client for sending commands to Docker. It lets you run containers from existing images, such as BusyBox images hosted on Docker Hub. section 2.1.3

A basic Docker CLI workflow is:

  • Install Docker Engine on Linux, or Docker Desktop on macOS and Windows. section 2.1.3
  • Run an image with docker run; Docker pulls it from Docker Hub when it is not available locally. section 2.1.3
  • Pass the image name and a command, such as busybox echo "Hello World". section 2.1.3
$ docker run busybox echo "Hello World"
Unable to find image 'busybox:latest' locally          #1
latest: Pulling from library/busybox                   #1
7c9d20b9b6cd: Pull complete                            #1
Digest: sha256:fe301db49df08c384001ed752dff6d52b4...   #1
Status: Downloaded newer image for busybox:latest      #1
Hello World         #2

This command listing shows image lookup, downloading, container execution, and command output in one run. section 2.1.3

How Kubernetes in Action, Second Edition covers it

How deep it goes
Demonstrates installation and one docker run workflow, but stops short of broader command reference or internals.
Examples
Uses busybox to run echo "Hello World", with Redis image commands as additional run examples.
What it assumes
Assumes installation access but teaches the initial Docker setup and first container run from zero.
What you can do after
Operate/configure it to pull an image and run a simple container command.
How it connects
Connects Docker CLI with container images, Docker Hub, Docker Engine, Docker Desktop, and container runtimes.

Also explained in

Compare how 3 books explain Docker CLI →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes in Action, Second Edition. The section links point to the parts of the book it draws on.