swarmkit test

时间:2024-01-18 21:32:38

swarmd -d /tmp/node-1 --listen-control-api /tmp/node-1/swarm.sock --hostname mhc --engine-addr=tcp://109.105.4.65:2375 --tls  --tlscert=/etc/docker/cert.pem --tlskey=/etc/docker/key.pem -l debug

swarmd -d /tmp/node-4 --join-addr 109.105.4.65:4242 --join-token SWMTKN-1-5hayqfobdv7bx3ymo3hm3347y6mj7s4mtf4k683rw1pzyr6box-0wwujpm33016bjx4y4zdk1u3c  --listen-remote-api 127.0.0.1:4245 -l debug --tls  --tlscert=/etc/docker/cert.pem --tlskey=/etc/docker/key.pem  --engine-addr=tcp://109.105.30.40:2375

./swarmd -d /tmp/node-1 --listen-control-api /tmp/node-1/swarm.sock --engine-addr=tcp://192.168.9.138:2376 --tls  --tlscert=/root/.sdc/docker/dbba/cert.pem --tlskey=/root/.sdc/docker/dbba/key.pem -l debug

./swarmctl service create --name test --image registry.bst-1.cns.bstjpc.com:5000/consul:0.8.4

./swarmctl service update pwz0id44rqf8c1c3re9r4ae6i --image registry.bst-1.cns.bstjpc.com:5000/consul:0.8.4 --replicas 2

swarmctl cluster inspect default  

./swarmd -d /tmp/sdcdocker2 --join-addr 109.105.30.40:4242 --join-token SWMTKN-1-297fxsjsh3s3ptplr3v9qhvoal4902ala578p1npzr3pysnyz8-ehjuh94gddpbr1dqxx3qe87gi  --listen-remote-api 127.0.0.1:4245 --engine-addr=tcp://192.168.9.2:2376 --tls  --tlscert=/root/.sdc/docker/dbba/cert.pem --tlskey=/root/.sdc/docker/dbba/key.pem -l debug

./swarmctl service  create --name test3 --image consul:0.8.4  --constraint node.hostname==mhc