docker 镜像管理
安装镜像
docker pull centos # 安装centos配置docker加速器(参考 http://blog.csdn.net/xlemonok/article/details/71403534)
vi /etc/docker/daemon.json//加入如下内容
{
"registry-mirrors": ["https://dhq9bx4f.mirror.aliyuncs.com"]
}
说明:这个url为加速器地址,需要可以自行到阿里云申请
配置完加速器,重启docker服务,再次docker pull centos会快很多查看本地镜像
docker images搜索镜像
docker search xxx # 搜索镜像,其中xxx是关键词给镜像打标签
docker tag centos tag1 # 修改REPOSITORY字段,本质还是那个镜像
docker tag centos tag1:xxx # 修改REPOSITORY和TAG字段把镜像启动为容器
查看运行的容器
删除指定镜像
通过容器创建镜像
使用模板创建镜像
上传镜像
最后更新于
这有帮助吗?