![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
docker
weipeng19861130
这个作者很懒,什么都没留下…
展开
-
docker安装centos7以及ssh安装连接
1. 创建centos docker run -d -p 5000:22 --name centos74 --privileged=true centos:latest /usr/sbin/init 进入容器命令 docker exec -it centos74 /bin/bash 2.service安装 yum install initscripts 3.ifconf原创 2018-01-08 19:58:26 · 8773 阅读 · 0 评论 -
docker容器备份成镜像
1.查看运行的容器 docker ps 2.使用docker commit命令生成镜像 docker commit -p [container id] [备份的镜像名称] docker commit -p 4bb centos7ssh 4bb为container id前三位 3.查看镜像列表 docker image ls 4.安装 docker run -d -p 4999:22原创 2018-01-08 20:09:14 · 406 阅读 · 0 评论