sudo docker --help
docker build -t demo:v1
systemctl start docker
service docker start
sudo docker ps -a
sudo docker images
sudo docker restart xx(容器名)
sudo docker exec -it xxx (容器名) bash
sudo docker run -it xxx:xx(镜像名:版本) bash
sudo docker commit xxxx(容器id) xxx:xx(镜像名:版本)
sudo docker run --name xxx(容器名) -v /data/xx/xxx:/xxx -itd xxx:xx(镜像名:版本) python /xxx/xx/xx.py (主程序入口)
sudo docker run -e ENVIRONMENT=$ENVIRONMT -e TZ=Asia/Shanghai --name xxx(容器名) -v /data/xx/xxx:/xxx -itd xxx:xx(镜像名:版本) python /xxx/xx/xx.py (主程序入口)
sudo docker run -e ENVIRONMENT=development --name xxx(容器名) -v /data/xx/xxx:/xxx -itd xxx:xx(镜像名:版本) -p 18000:8000 python /xxx/xx/xx.py (主程序入口)
sudo docker logs -f xxx(容器名)
sudo docker logs xxx(容器名) | grep -C 200 XXXXXXX(关键字)
docker search xxx
docker pull xxx/xxx
docker exec -u 0 -it xxx(容器名) /bin/bash root用户进入
sudo docker stop xxx
sudo docker rm xxx
sudo docker ps -a
sudo docker network create --subnet=xx.xx.x.x(ip) xxx
sudo docker network ls
docker tag xxx(镜像id) xxx:xx(镜像名:版本)
docker save -o xx.tar xxx(镜像id)
docker load -i xx.tar
docker volume ls
docker push
docker login
docker logout
docker info
docker version
docker rm
docker rmi
docker cp
docker inspect xxx(容器名)
docker stats xxx(容器名)
docker volume ls
docker top xxx(容器名)
sudo docker system df
sudo docker system prue
sudo docker system prue -a 慎用
sudo docker-compose version
sudo docker-compose up
sudo docker-compose up -d
sudo docker-compose down
sudo docker-compose restart