목차

, , , ,

Docker Stack

Compose 스타일 정의를 Swarm service 집합으로 배포하는 docker stack 그룹.

Summary

Usage

docker stack COMMAND

Command Groups

Examples

# Swarm stack 배포
docker stack deploy -c compose.yaml myapp
 
# registry auth를 worker 노드에 전달
docker stack deploy -c compose.yaml --with-registry-auth myapp
 
# task 상태 확인
docker stack ps myapp

Troubleshooting

Help

+ docker stack --help

Usage:  docker stack COMMAND
 
Manage Swarm stacks
 
Commands:
  config      Outputs the final config file, after doing merges and interpolations
  deploy      Deploy a new stack or update an existing stack
  ls          List stacks
  ps          List the tasks in the stack
  rm          Remove one or more stacks
  services    List the services in the stack
 
Run 'docker stack COMMAND --help' for more information on a command.

+

See Also

History