检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
如果您通过配置本地/etc/hosts的方式访问OBS,需要将SWR存储容器镜像的OBS桶集群(可能存在一个或者多个)的域名配置到本地/etc/hosts,否则可能导致下载镜像失败或者偶现失败,请提交工单获取不同局点SWR对应的OBS桶集群信息 父主题: 配置访问网络
容器镜像服务目前有共享版和企业版。差异如下: 表1 容器镜像服务共享版和容器镜像服务企业版对比表 大类 功能项 共享版 企业版 通用 页面入口 登录华为云控制台,单击服务列表,搜索“容器镜像服务”,单击进入的是共享版容器镜像服务。 在共享版容器镜像服务页面单击“企业版”链接,进入的则是企业版容器镜像服务
本节指导您通过Dockerfile定制一个简单的Web应用程序的容器镜像。Dockerfile是一个文本文件,其内包含了一条条的指令(Instruction),每一条指令构建一层,因此每一条指令的内容,就是描述该层应当如何构建。 使用Nginx镜像创建容器应用,在浏览器访问时则会看到默认的Ngin
Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json 缺省值:application/json X-Auth-Token 是 String 用户Token。
Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json 缺省值:application/json 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型
Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json 缺省值:application/json X-Auth-Token 是 String 用户Token。
"fb3f175c1fd146ab8cdae3272be*****", "user_name": "test" } } 父主题: 应用示例
1304902, "updated": "2020-10-30T11:47:46.084808Z", "url": "" } 父主题: 应用示例
https://{endpoint}/v2/manage/namespaces/group/repos/test/retentions/34 响应示例 {} 父主题: 应用示例
上传下载镜像走公网链路,机器需要绑定弹性公网IP。详细配置方法请参考公网访问。 VPN/云专线访问 这种情况下可以使用云专线或VPN连接华为云VPC,通过专线/VPN打通用户本地数据中心到VPC间的网络,使用VPC终端节点访问SWR。详细配置方法请参考VPN/云专线访问。 不允许用户上传镜像
code.test.com:443 Content-Type 消息体的类型(格式)。推荐用户使用默认值application/json,有其他取值时会在具体接口中专门说明。 是 application/json Content-Length 请求body长度,单位为Byte。 否 3495
ADD . /app RUN cd /app && npm install CMD npm start 删除多余文件 假设更新了apt-get源,下载解压并安装了一些软件包,它们都保存在“/var/lib/apt/lists/”目录中。 但是,运行应用时Docker镜像
参数 参数类型 描述 action String 触发动作,update app_type String 应用类型,deployments、statefulsets application String 应用名 cluster_id String 集群ID(cci时为空) cluster_name
参数 参数类型 描述 action String 触发动作,update app_type String 应用类型,deployments、statefulsets application String 应用名 cluster_id String 集群ID(cci时为空) cluster_name
Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json 缺省值:application/json X-Auth-Token 是 String 用户Token。
参数类型 描述 action 是 String 触发动作,update app_type 是 String 应用类型,deployments、statefulsets application 是 String 应用名 cluster_id 否 String 集群ID(trigger_mode设置为cci时为空)
matchLabels: app: nginx strategy: type: RollingUpdate template: metadata: labels: app: nginx spec:
matchLabels: app: nginx strategy: type: RollingUpdate template: metadata: labels: app: nginx spec:
Content-Type 是 String 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json 缺省值:application/json X-Auth-Token 是 String 用户Token。
容器镜像服务和其他云服务的关系 云容器引擎 云容器引擎(Cloud Container Engine,简称CCE)提供高可靠高性能的企业级容器应用管理服务,支持Kubernetes社区原生应用和工具,简化云上自动化容器运行环境搭建。 容器镜像服务能无缝对接CCE,您可以将容器镜像服务中的镜像部署到CCE中。