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


