- Mac: π https://docs.docker.com/installation/mac/
- Ubuntu: π§ curl -sSL https://get.docker.com/ubuntu/ | sudo sh
- Linux: wget -qO- https://get.docker.com/ | sudo sh
- CentOS: π¦
> unset ${!DOCKER*}
Start/Stop docker service: service docker start/stop ⏯️
Build image: docker build -t="test:latest" . π️
List images: docker images πΌ️
Run a command in a new container: π
- docker run -it -p 8888:8080 -d test:latest
List containers: docker ps π
Connect to running docker container: docker exec -i -t "IMAGE ID" /bin/bash
Stop containers: docker stop $(docker ps -a -q) π
Remove containers: docker rm $(docker ps -a -q) π§Ό
Removing all unused docker images: docker images -q |xargs docker rmi ♻️Docker hub commands: π
Push docker image:
- docker tag 515ba39974ef test/icadl:version1
- docker push test/icadl π€
- docker-machine ip
ζ²ζηθ¨:
εΌ΅θ²Όηθ¨