https://www.cnblogs.com/li-peng/p/8144372.html
docker build -t goweb:1.0 .
docker run -p 8100:8000 [image id]
private registry tutorials
http://www.cnblogs.com/li-peng/p/6511331.html
my private register is lpxxn.com:5000
docker tag goweb:1.0 lpxxn.com:5000/goweb:1.0
docker push lpxxn.com:5000/goweb:1.0
docker swarm init
docker stack deploy -c docker-compose.yml mygoweb
docker service ls
docker service ps mygoweb
you can scale the app by changing the replicas value in docker-compose.yml, save the change, and re-running the docker stack deploy command
docker stack deploy -c docker-compose.yml mygoweb
- take the app down
docker stack rm mygoweb
docker swarm leave --force