작성 및 swarm을 사용하여 서버 인프라를 설정하려고합니다. 기본적으로 Digital Ocean 드롭 릿의 Docker 웹 사이트에서이 예제를 미러링 (설정)하고 싶습니다.작성자와 스웜이있는 도커
https://docs.docker.com/swarm/swarm_at_scale/deploy-app/
이가 고정 표시기가-구성 실행의 출력입니다 : 모든 서비스가 모든 컴퓨터에 설치하기 않은 것 같습니다이에서
docker-compose up -d
Creating network "scale_voteapp" with the default driver
Creating volume "scale_db-data" with default driver
Pulling db (postgres:9.4)...
worker01: Pulling postgres:9.4... : downloaded
dbstore: Pulling postgres:9.4... : downloaded
frontend01: Pulling postgres:9.4... : downloaded
frontend02: Pulling postgres:9.4... : downloaded
Creating db
Pulling redis (redis:latest)...
dbstore: Pulling redis:latest... : downloaded
frontend01: Pulling redis:latest... : downloaded
frontend02: Pulling redis:latest... : downloaded
worker01: Pulling redis:latest... : downloaded
Creating redis
... 그래서 포스트 그레스있을 것이다 worker01, redis 등을 설치하기 만하면됩니다.
제 궁금한 점은이게 무슨 일 이니, 어떻게 작동 할 것인가입니다. 모든 서비스가 모든 컴퓨터에 매핑되어 있습니까 (그렇다면 모든 서비스가 모든 컴퓨터에서 실행되고 있습니까) 아니면 각 서비스가 클러스터 내의 단일 실제 컴퓨터에 매핑됩니까?
건배는 아론
위에서 컨테이너 이미지가 여러 대의 컴퓨터에 다운로드되는 것을 볼 수 있습니다. 왜 그들이 어디서 달리고 어떤 번호인지 확인하지 않겠습니까? 나는'docker ps'가 그걸 보여줄 것이라고 생각합니다. –