목차

, , ,

Docker Context

여러 Docker endpoint를 이름으로 저장하고 전환하는 docker context 관리 그룹.

Summary

Usage

docker context COMMAND

Command Groups

Examples

# SSH endpoint를 context로 등록
docker context create prod --docker host=ssh://deploy@example.com
 
# 현재 기본 context 확인 및 전환
docker context show
docker context use prod
 
# 1회성으로만 다른 context 사용
docker --context prod ps

Troubleshooting

Help

+ docker context --help

Usage:  docker context COMMAND
 
Manage contexts
 
Commands:
  create      Create a context
  export      Export a context to a tar archive FILE or a tar stream on STDOUT.
  import      Import a context from a tar or zip file
  inspect     Display detailed information on one or more contexts
  ls          List contexts
  rm          Remove one or more contexts
  show        Print the name of the current context
  update      Update a context
  use         Set the default docker context
 
Run 'docker context COMMAND --help' for more information on a command.

+

See Also

History