docker实用命令
列出运行实例
- snippet.bash
docker ps # 或者, docker ps -a
列出所有镜像
- snippet.bash
docker images
删除容器
- snippet.bash
docker rm docker_container_id
更新docker image
- snippet.bash
docker run -t -i image_name:tag /bin/bash (更新)... exit docker commit -m="log msg" docker_container_id image_name:tag
运行实例
- snippet.bash
docker exec -it sqlserver /bin/bash
启动docker,并mount目录
- snippet.bash
docker run --privileged=true -v /opt2/dataset/:/mnt/ --name sqlsvr -it mcr.microsoft.com/mssql/server:2019-latest /bin/bash
使用实例
- snippet.bash
docker rm -f temp docker run -it --name temp -v /opt/data/tpch_300s/loaded_db/mpp_notnull:/home/seabox/ centos:build4 /bin/bash
打赏作者以资鼓励: