docker network create -d=bridge company
docker run -d --name customer-api --net company swarmgs/customer
docker run -d --name balance-api --net company -p 4000:3000 -e MYWEB_CUSTOMER_API=customer-api:3000 swarmgs/balance
docker-compose -f company.yml up -d
docker service create --name=viz --publish=8090:8080 --constraint=node.role==manager --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock dockersamples/visualizer
docker service create --mode=global --name=cadvisor
--mount type=bind,src=/,dst=/rootfs,readonly=true
--mount type=bind,src=/var/run,dst=/var/run,readonly=false
--mount type=bind,src=/sys,dst=/sys,readonly=true
--mount type=bind,src=/var/lib/docker/,dst=/var/lib/docker,readonly=true
--publish 8080:8080 google/cadvisor
docker build -t myapp .
docker tag 9d232b8aade5 medineshkatwal/myapp:v1
docker login
docker push medineshkatwal/myapp:v1
docker run --rm bretfisher/httping -i .1 -G -s -Y http://192.168.56.2:3000
docker service update service_name --rollback-order=(start-first| stop-first) OR With Docker-compose deploy: update_config: order: start-first | stop-first
docker run --rm bretfisher/httping -i .1 -G -s -Y http://192.168.56.2:3000/health