Getting started with Docker
Useful commands
Login to client
docker login --username staieb
docker stop <Container_ID>
docker rm <Container_ID>
# force remove
docker rm -f < Container_ID>
Docker Swarm
# create the docker swarm (adds the machine to docker swarm)
docker swarm init
# stack: networks, services and all the containers
docker stack deploy –compose-file=docker-compose.yml mystack
docker service ls
docker service update --image my-app:v2 myapp
docker service scale myapp=3