Docker 使用镜像

简介: docker镜像使用

注册docker源

Docker Hub

​hub.docker.com/repositories

登录

docker login docker.io

查看登录配置

cat /root/.docker/config.json
echo andjb2RlOjMzODM2MDA4 | base64 -d   #显示账号密码

搜索镜像

docker search alpine

下载镜像

docker pull alpine

添加镜像标签(当前 -> 新标签)

docker tag hello-world:latest zhang:latest

获取镜像信息

docker inspect hello-world:latest

查看镜像历史

docker history hello-world:latest

删除镜像

docker rmi zhang:latest

查看本机所有存在镜像

docker ps -a

强行删除镜像

docker rmi -f zhang:latest

创建镜像

1.0 基于已有镜像的容器创建

docker run -it ubuntu:14.04 /bin/bash
    docker commit -m "测试提交" -a "伍先生" 34e6bd8eb65b wtest:1.0.0

2.0 基于本地文件导入

导出镜像

docker save -o 文件压缩包.tar 镜像:版本号

载入镜像

docker load --input 文件包
docker load < 文件包

3.0 上传镜像(先加标签再上传)

docker tag wtest:1.0.0 test/wtest:1.0.0
    docker push test/wtest:1.0.0
目录
相关文章
|
1月前
|
应用服务中间件 Linux nginx
Docker镜像-手动制作yum版nginx镜像
这篇文章介绍了如何手动制作一个基于CentOS 7.6的Docker镜像,其中包括下载指定版本的CentOS镜像,创建容器,配置阿里云软件源,安装并配置nginx,自定义nginx日志格式和web页面,最后提交镜像并基于该镜像启动新容器的详细步骤。
104 21
Docker镜像-手动制作yum版nginx镜像
|
7天前
|
jenkins 持续交付 Docker
docker之自定义制作镜像(python程序)
docker之自定义制作镜像(python程序)
|
1月前
|
应用服务中间件 nginx Docker
Docker镜像-基于DockerFile制作编译版nginx镜像
这篇文章介绍了如何基于Dockerfile制作一个编译版的nginx镜像,并提供了详细的步骤和命令。
147 17
Docker镜像-基于DockerFile制作编译版nginx镜像
|
1月前
|
应用服务中间件 Linux nginx
Docker镜像管理篇
关于Docker镜像管理的教程,涵盖了Docker镜像的基本概念、管理命令以及如何制作Docker镜像等内容。
117 7
Docker镜像管理篇
|
1月前
|
应用服务中间件 Linux nginx
Docker镜像-基于DockerFile制作yum版nginx镜像
本文介绍了如何使用Dockerfile制作一个基于CentOS 7.6.1810的yum版nginx镜像,并提供了详细的步骤和命令。
75 20
|
1月前
|
Docker 容器
Docker Hub镜像公共仓库使用
这篇文章介绍了如何使用Docker Hub公共仓库进行镜像的创建、上传、下载和管理。
439 8
|
2月前
|
存储 安全 Ubuntu
Docker 镜像与 Docker 容器的区别
【8月更文挑战第27天】
83 5
|
2月前
|
运维 Ubuntu Shell
掌握Docker容器的创建:从镜像到实例
【8月更文挑战第27天】
169 4
|
2月前
|
物联网 Serverless API
函数计算产品使用问题之怎么部署Docker镜像进行lora训练
函数计算产品作为一种事件驱动的全托管计算服务,让用户能够专注于业务逻辑的编写,而无需关心底层服务器的管理与运维。你可以有效地利用函数计算产品来支撑各类应用场景,从简单的数据处理到复杂的业务逻辑,实现快速、高效、低成本的云上部署与运维。以下是一些关于使用函数计算产品的合集和要点,帮助你更好地理解和应用这一服务。
|
2月前
|
存储 Docker 容器
阿里云私有docker仓库构建海外镜像
【8月更文挑战第25天】
135 3
下一篇
无影云桌面