1 创建账户,创建仓库

docker 学习(十一) 镜像常用命令

 

   首先在dockerhub上有自己的账户,然后创建一个repository(如上图),

然后创建一个名字为robinfei/consumer的仓库。

docker 学习(十一) 镜像常用命令

 

2  本地镜像打标签(比如本地有个镜像叫consumer:latest)( 标签其实就是版本)

  Docker tag consumer:latest   robinfei/consumer:1.0

3  登录docker 

  Docker login,   然后输入用户名和密码。

4  上传镜像: docker  push  robinfei/consumer:1.0

5  下载镜像:  docke pull  robinfei/consumer:1.0

 

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-09-15
  • 2021-08-25
  • 2021-07-04
  • 2022-01-22
猜你喜欢
  • 2021-09-22
  • 2022-01-26
  • 2021-05-20
  • 2022-12-23
  • 2021-09-07
  • 2021-05-28
相关资源
相似解决方案