alias dc=’docker-compose’
dc up -d
dc down
dc build
docker images
docker rmi …
docker ps -la
docker ps
docker rm …
docker network ls -q | xargs docker network rm
docker volume ls -q | xargs docker volume rm
docker ps -aq | xargs docker stop
docker ps -aq | xargs docker rm
docker images -aq | xargs docker rmi
docker system prune
docker build -t friendlyhello .
docker run -d -p 4000:80 friendlyhello
docker login
docker swarm init
docker stack deploy -c docker-compose.yml getstartedlab
docker service ls
docker service ps getstartedlab_web
docker stack rm getstartedlab
docker swarm leave --force
docker-machine create --driver virtualbox myvm1
docker-machine ls
docker-machine ssh myvm1 "docker swarm init --advertise-addr "
docker-machine ssh myvm2 "docker swarm join
--token
:2377"
eval $(docker-machine env myvm1) docker stack deploy --with-registry-auth -c docker-compose.yml getstartedlab
eval $(docker-machine env -u)