## 列出运行实例 ```bash docker ps # 或者, docker ps -a ``` ## 列出所有镜像 ```bash docker images ``` ## 删除容器 ```bash docker rm docker_container_id ``` ## 更新docker image ```bash docker run -t -i image_name:tag /bin/bash (更新)... exit docker commit -m="log msg" docker_container_id image_name:tag ``` ## 运行实例 ```bash docker exec -it sqlserver /bin/bash ``` ## 启动docker,并mount目录 ```bash docker run --privileged=true -v /opt2/dataset/:/mnt/ --name sqlsvr -it mcr.microsoft.com/mssql/server:2019-latest /bin/bash ``` ## 使用实例 ```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 ```