Docker
/Beginner
Docker CLI
Definition
The Command Line Interface. The primary tool that human users use to interact with Docker by typing commands in the terminal.
Explain Like I'm New
The steering wheel and pedals. The CLI takes your typed text (`docker run ubuntu`) and translates it into an API request that the Docker Engine understands.
Real World Example
Opening Terminal or Command Prompt and typing `docker ps` to see a list of running containers. That text is processed by the Docker CLI.
Common Use Cases
- •Daily developer workflows
- •CI/CD scripting
Interview Questions
basic
- If you type `docker version`, which component are you directly interacting with?
intermediate
- Can the Docker CLI on your laptop be configured to control a Docker Engine running on a completely different server?