Command

Docker Switch Docker Context Command

The Docker command to switch docker context is docker context use NAME.

Quick Answer

Command
docker context use NAME
DockerCommand

Switch Docker Context

Type this command
docker context use NAME

Points your Docker client at another endpoint until you switch back.

Learn More

How to switch docker context in Docker

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

Docker Switch Docker Context Command

Run docker context use NAME.

Related Commands

Frequently asked questions

What is the Docker command to switch docker context?

Run docker context use NAME.

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