ssh-keygen –t rsa
az login
az account set --subscription "Visual Studio Enterprise"
az account set --subscription "Azure Pass"
az group create \
--name swarmresourcegroup \
--location "Southeast Asia"
time az group deployment create \
--name "coredemo" \
--resource-group "swarmresourcegroup" \
--template-file azuredeploy.json \
--parameters parameters.json
docker build -t coremvc .
docker run -d -p 80:80 coremvc
docker run -it -p 80:80 coremvc
docker run -it -p 8080:80 coremvc
docker-compose --file docker-compose-build.yml build
docker-compose --file docker-compose-build.yml up
ssh -fNL 2375:localhost:2375 -p 2200 [email protected]
export DOCKER_HOST=:2375
docker node update --availability=active swarmm-master-coredemo-0
docker service create \
--name portainer \
--publish 9000:9000 \
--constraint 'node.role == manager' \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
portainer/portainer \
-H unix:///var/run/docker.sock
http://swarmagent.southeastasia.cloudapp.azure.com:9000/
docker node update --availability=pause swarmm-master-coredemo-0
http://swarmagent.southeastasia.cloudapp.azure.com
http://swarmagent.southeastasia.cloudapp.azure.com:8080/api/keyvalue
az group delete --name swarmresourcegroup --yes--no-wait