課程
/云計算&大數據
/Docker
/Docker入門
the service name True must be a quoted string?在哪改?
2018-08-12
源自:Docker入門 6-3
正在回答
https://www.jianshu.com/p/44022c67f117?文章中的 dock-compose.yaml
version: '2' networks: ?byfn: services: ?etcd1: ? ?image: quay.io/coreos/etcd ? ?container_name: etcd1 ? ?command: etcd -name etcd1 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ? ?ports: ? ? ?- 32791:2379 ? ? ?- 32790:2380 ? ?networks: ? ? ?- byfn ?etcd2: ? ?image: quay.io/coreos/etcd ? ?container_name: etcd2 ? ?command: etcd -name etcd2 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ? ?ports: ? ? ?- 32789:2379 ? ? ?- 32788:2380 ? ?networks: ? ? ?- byfn ?etcd3: ? ?image: quay.io/coreos/etcd ? ?container_name: etcd3 ? ?command: etcd -name etcd3 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ? ?ports: ? ? ?- 32787:2379 ? ? ?- 32786:2380 ? ?networks: ? ? ?- byfn
docker-compose.yml 文件方便貼出來嗎
qq_走走看看_0
舉報
再不學點Docker你就out啦!
1 回答docker-compose up -d 報錯
3 回答運行docker-compose up -d 報錯了,提示3306: bind: address already in use'
1 回答docker-compose up -d 啟動報錯
1 回答 docker-compose up -d命令問題
2 回答docker-compose up -d 運行成功 項目跑不起來, logs 報錯
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-10-31
https://www.jianshu.com/p/44022c67f117?文章中的 dock-compose.yaml
2019-10-31
version: '2' networks: ?byfn: services: ?etcd1: ? ?image: quay.io/coreos/etcd ? ?container_name: etcd1 ? ?command: etcd -name etcd1 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ? ?ports: ? ? ?- 32791:2379 ? ? ?- 32790:2380 ? ?networks: ? ? ?- byfn ?etcd2: ? ?image: quay.io/coreos/etcd ? ?container_name: etcd2 ? ?command: etcd -name etcd2 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ? ?ports: ? ? ?- 32789:2379 ? ? ?- 32788:2380 ? ?networks: ? ? ?- byfn ?etcd3: ? ?image: quay.io/coreos/etcd ? ?container_name: etcd3 ? ?command: etcd -name etcd3 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ? ?ports: ? ? ?- 32787:2379 ? ? ?- 32786:2380 ? ?networks: ? ? ?- byfn
2018-08-19
docker-compose.yml 文件方便貼出來嗎