首页 > 其他分享 >镜像仓库——阿里云

镜像仓库——阿里云

时间:2024-03-26 17:46:04浏览次数:15  
标签:ago 仓库 0.0 hmm 阿里 com 镜像 docker root

[root@hmm ~]# vi /etc/docker/daemon.json
[root@hmm ~]# systemctl daemon-reload
[root@hmm ~]# systemctl restart docker
[root@hmm ~]# cat /etc/docker/daemon.json 
{

  "registry-mirrors":["https://registry.docker-cn.com"]

}
[root@hmm ~]# 

[root@hmm ~]# docker login --username=aliyun0475555124 registry.cn-hangzhou.aliyuncs.com
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
[root@hmm ~]#  docker build -t registry.cn-hangzhou.aliyuncs.com/hanmiao_03/hmmmm:24.03.26 .
[+] Building 0.1s (5/5) FINISHED                                                            docker:default
 => [internal] load build definition from Dockerfile                                                  0.0s
 => => transferring dockerfile: 79B                                                                   0.0s
 => [internal] load .dockerignore                                                                     0.0s
 => => transferring context: 2B                                                                       0.0s
 => [internal] load build context                                                                     0.0s
 => => transferring context: 28B                                                                      0.0s
 => CACHED [1/1] COPY hello /                                                                         0.0s
 => exporting to image                                                                                0.0s
 => => exporting layers                                                                               0.0s
 => => writing image sha256:e8c9e00260a8e1518736ea7a6b7d596a61cf3bd7d4e04bc19be0cf2f417cf28a          0.0s
 => => naming to registry.cn-hangzhou.aliyuncs.com/hanmiao_03/hmmmm:24.03.26                          0.0s
[root@hmm ~]# docker images
REPOSITORY                                           TAG        IMAGE ID       CREATED         SIZE
centos-with-nginx                                    latest     fe0f7fc1d27c   13 days ago     248MB
imglayers-test                                       latest     3d2d641327e8   13 days ago     196MB
my-hello                                             latest     e8c9e00260a8   2 weeks ago     861kB
registry.cn-hangzhou.aliyuncs.com/hanmiao_03/hmmmm   24.03.26   e8c9e00260a8   2 weeks ago     861kB
ubuntu                                               latest     ca2b0f26964c   3 weeks ago     77.9MB
httpd                                                latest     ac45b24b92cc   2 months ago    167MB
ubuntu                                               18.04      f9a80a55f492   10 months ago   63.2MB
hm/ubuntu                                            hhh        f9a80a55f492   10 months ago   63.2MB
hello-world                                          latest     d2c94e258dcb   10 months ago   13.3kB
centos                                               latest     5d0da3dc9764   2 years ago     231MB
ubuntu                                               14.04      13b66b487594   3 years ago     197MB
[root@hmm ~]# docker push registry.cn-hangzhou.aliyuncs.com/hanmiao_03/hmmmm:24.03.26
The push refers to repository [registry.cn-hangzhou.aliyuncs.com/hanmiao_03/hmmmm]
489199a05e67: Pushed 
24.03.26: digest: sha256:b44cd7cf49ecca2044d5ff0c7f1ccfdc49e68d1edb8ee098eef261b7ee452bbe size: 526

标签:ago,仓库,0.0,hmm,阿里,com,镜像,docker,root
From: https://www.cnblogs.com/humlogs/p/18097183

相关文章

  • 项目-Air780阿里云报警板测试说明
     程序下载1,打开这节的程序 2,在阿里云物联网平台上注册产品和添加设备,点击查看设备   2,根据查看的信息修改程序  3,打开Luatools 4,打开Luatools 5,创建一个项目,名随意  6,选择底层core  7,选择程序   8,下载程序(第一次......
  • 善用AI:智能写作与快速访问的双重优势(附镜像站汇总)
    随着人工智能技术的不断发展,我们的日常工作和学习方式正在经历一场革命。在众多创新工具中,GPT(GenerativePre-trainedTransformer)已经成为了一个耀眼的明星,而这个月Claude3的登场,再次将人工智能推向新一轮高峰。为什么要使用AI? 提高效率GPT、Claude等,作为先进的自然语言......
  • Mendix 构建Docker镜像
      1、使用最新版MendixDockerBuildpackhttps://github.com/mendix/docker-mendix-buildpack/tree/latest2、克隆最新版Buildpack,修改<TAG>这里会产生一个docker-mendix-buildpack文件夹,以后所有的工作都在这个文件夹下进行gitclone--branch<TAG>--......
  • java打包docker镜像
    参考:https://blog.csdn.net/liuxianwen1990/article/details/136256490 1,把jar包复制/opt/test,cd到这个目录下 2,创建Dockerfile文件,jdk8版本vimDockerfileFROMopenjdk:8-jre-alpineCOPYdemo-0.0.1-SNAPSHOT.jardemo-0.0.1-SNAPSHOT.jarCMD["java","-jar&q......
  • macOS Ventura 13.6.6 (22G630) Boot ISO 原版可引导镜像下载
    macOSVentura13.6.6(22G630)BootISO原版可引导镜像下载3月26日凌晨,macOSSonoma14.4.1发布,同时带来了macOSVentru13.6.6安全更新。macOSVentura13.6及更新版本,如无特殊说明皆为安全更新,不再赘述。本站下载的macOS软件包,既可以拖拽到Applications(应用程序)......
  • macOS Sonoma 14.4.1 (23E224) 正式版 Boot ISO 原版可引导镜像下载
    macOSSonoma14.4.1(23E224)正式版BootISO原版可引导镜像下载2024年3月26日凌晨,macOSSonoma14.4.1更新修复了一个可能导致连接到外部显示器的USB集线器无法被识别的问题。它还解决了可能导致Java应用程序意外退出的问题,并修复了可能导致专业音乐应用程序的音频......
  • mvn配置多仓库
    如果需要配置多个仓库,前一个拉不到就去后一个仓库拉取,就必须要配置多个profile,而不是在一个profile下配置多个repo并且优先级高的仓库,要配置在下面,因为优先顺序是反的<?xmlversion="1.0"encoding="UTF-8"?><settingsxmlns="http://maven.apache.org/SETTINGS/1.0.0"......
  • 数仓 - [02] 数据仓库模型设计
      一、什么是数据模型模型,指对于某个实际问题或者客观事物、规律进行抽象后的一种形式化表达方式。数据模型,多指在设计和建立数据库时,用于提供数据表示和操作手段的形式架构。企业数据模型,是企业数据特征的抽象,主要用来体现企业的业务规则以及信息。 二、数据模型的层次......
  • 海量数据处理项目-阿里编码规范里面Manager分层介绍和开发规范说明
    ......
  • kubeadm拉取镜像并改名脚本
    拉取镜像并改名脚本#!/bin/bashimages=( kube-apiserver:v1.24.3 kube-controller-manager:v1.24.3 kube-scheduler:v1.24.3 kube-proxy:v1.24.3 pause:3.7 etcd:3.5.3-0 coredns:v1.8.6)forimageNamein${images[@]};dodockerpullregistry.cn-hangzhou.al......