JAEN

Docker

docker context

CautionSwitch Docker endpoints

docker context use <name>

Switches between local/remote daemons (incl. over SSH) — know exactly which host you're driving.

Examples

  • docker context create prod --docker host=ssh://ops@prod01Register a remote over SSH

Syntax

docker context [ls|use|create] [name]

Before you run it

Don't operate while pointed at prod by accident.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store