DOCKER(1)

πŸ’– DOCKER(1) πŸ’– β€” aka the docker-context-create glow-up ✨

okay so bestie, this is a page from the Docker User Manuals set, and it's all about making a brand new context. yep. that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

docker-context-create β€” Create a context πŸ’…


✨ SYNOPSIS ✨

docker context create [OPTIONS] CONTEXT

that's it. that's the whole thing. [OPTIONS] are optional (shocking, i know 😭), and CONTEXT is the name of the little guy you're creating πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Create a context. slay. that's literally what it does ✨

and now, the part everyone always forgets about β€” the Docker endpoint config. here's every field you can stuff into your endpoint, no cap:

  • from β€” Copy named context's Docker endpoint configuration πŸ‘€
  • host β€” Docker endpoint on which to connect
  • ca β€” Trust certs signed only by this CA
  • cert β€” Path to TLS certificate file
  • key β€” Path to TLS key file
  • skip-tls-verify β€” Skip TLS certificate validation 🚩
lowkey be careful with skip-tls-verify bestie, that one is giving "i'm ignoring the vibe check" energy πŸ™ˆ

Example:

$ docker context create my-context --description "some description" --docker "host=tcp://myserver:2376,ca=~/ca-file,cert=~/cert-file,key=~/key-file"

look at her go. icon. 🌈


πŸ‘‘ OPTIONS πŸ‘‘

  • --description="" β€” Description of the context. give it a little name tag, she deserves it πŸŽ€
  • --docker=[] β€” set the docker endpoint. this is where the whole host/ca/cert/key situation goes πŸ”₯
  • --from="" β€” create context from a named context. copy someone else's whole fit, respectfully πŸ’œ

🌈 SEE ALSO 🌈


and that's the tea β˜• Docker Community, version Oct 2026, DOCKER(1) β€” mwah, love u, go create a context bestie πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from