Command

Docker List Docker Contexts Command

The Docker command to list docker contexts is docker context ls.

Quick Answer

Command
docker context ls
DockerCommand

List Docker Contexts

Type this command
docker context ls

Shows the endpoints your Docker client can talk to.

Learn More

How to list docker contexts in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker context ls, replace any placeholders, and run it.

Docker List Docker Contexts Command

Run docker context ls.

Related Commands

Frequently asked questions

What is the Docker command to list docker contexts?

Run docker context ls.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify