docker-machine start
- Start VMdocker-machine stop
- Stop VMdocker-machine env
- Display Docker client setup commandsdocker <command> --help
- Get help on a specific commanddocker pull <Name of Image>
- Pull image from Docker Hubdocker images
- Show all imagesdocker rmi <ImageID>
- Remove specific imagesdocker rmi $(docker images | grep "^<none>" | awk "{print $3}")
- Remove untagged images - docker ps -a
- Show all containersdocker rm <ContainerID>
-Remove specific containerdocker rm $(docker ps -a -q)
Remove all containersdocker ps --format 'table \t\t'
- Formatted list of containersdocker run -d --name <Container Name> -p <External Port>:<Container Port> <Your Image>
- Run a containerdocker build -f <Your Dockerfile> -t <Tag Name> .
- Build an image from a Dockerfiledocker login
- Login using your Docker credentialsdocker push <Your Image Name>
- Push an image to Docker hubdocker attach [OPTIONS] CONTAINER
- Login to container
2) run - docker-compose up --scale consumer=3 --scale ui=1 --scale publisher=1
3) Locate rjq-ui IP - docker inspect rjqui_ui_1 | grep IPAddress
(:3000)docker-compose build
- Build images based on docker-composedocker-compose up -d
- Start in daemon modedocker-compose logs
- Show logs from containersdocker-compose up
- Start containers based on docker-composedocker-compose stop
- Stop containersdocker-compose down
- Stop and remove containersFind port - sudo ip addr show docker0