docker eco system

docker swarm

how to start docker swarm using docker-machine

1
2
3
$ docker-machine start default
$ eval $(docker-machine env default)
$ docker run swarm --help

위와 같이 하면, docker swarm이 실행되는 지를 바로 볼 수 있다.
간단하게 docker swarm이 설치되어 있지 않은 상황에서 자동으로 다운로드를 받는다.

정상적으로 설치가 된다면 아래와 같이 나온다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Usage: swarm [OPTIONS] COMMAND [arg...]
A Docker-native clustering system
Version: 1.2.6 (`git rev-parse --short HEAD`)
Options:
--debug debug mode [$DEBUG]
--log-level, -l "info" Log level (options: debug, info, warn, error, fatal, panic)
--experimental enable experimental features
--help, -h show help
--version, -v print the version
Commands:
create, c Create a cluster
list, l List nodes in a cluster
manage, m Manage a docker cluster
join, j Join a docker cluster
help Shows a list of commands or help for one command
Run 'swarm COMMAND --help' for more information on a command.

docker swarm 간단 소개 및 설치 가이드

docker swarm github]

docker swarm mode overview

Share Comments