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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store