用commit方式构建具有sshd服务的centos镜像
1.从远程仓库中pull centos镜像 docker pull centos 2.查询镜像docker images [root@HA2 kehj]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx-docker v1 20c4d11561d3 11 hours ago 451.1 MB docker.io/nginx latest f895b3fb9e30 2 weeks ago 108.5 MB docker.io/centos latest 3fa822599e10 3 weeks ago 203.5 MB docker.io/ubuntu latest 747cb2d60bbe 11 weeks ago 122 MB 3.启动centos容器 docker run -i -t centos /bin/bash [root@HA2 kehj]# do...