Tool-Docker-以ubuntu:latest为例
docker search ubuntu
:查询镜像docker pull ubuntu[:version]
:拉取镜像docker images
:查看镜像docker ps -a
:查看当前容器状态docker run -itd --name container-name images-name[:version] /bin/bash
:运行容器docker exec -it container-name|containerID /bin/bash
:进入指定容器docker commit -m="update" -a="yongchao" container-name|containerID container-name-new:version
:从指定容器提交更新镜像docker save -o xxx.tar images-name[:version]
:导出指定版本镜像docker rmi images-name
:删除指定镜像docker load -i xxx.tar
:导入镜像压缩包docker cp xx container-name:xx
或docker cp container-name:xx xx
:拷贝文件docker inspect container-name
:查看信息docker network
:配置网络--net --ip
- list
- create
- connect
- disconnect
- rm