检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
登录容器镜像仓库。如果您只是偶尔推送或者拉取镜像,使用临时登录指令即可。 如果您使用的是containerd容器引擎客户端,且需要长期推送或者拉取镜像,那么您可以使用获取containerd容器引擎长期有效的拉取、推送镜像指令来访问容器镜像仓库。 具体差异请参见长期有效的登录指令与临时登录指令的区别是什么?
镜像老化 操作场景 现代软件开发多采用流水线生成镜像,随着版本不断向前迭代,将会不断生成新的镜像版本。新版本镜像的生成意味着老旧版本的镜像变得不再需要,如何方便快速的删除这些老旧版本镜像成为了新的问题。容器镜像服务企业版提供镜像老化功能,您可以创建镜像老化规则,手动或定时触发该规
功能总览 功能总览 全部 创建用户并授权使用SWR 客户端上传镜像 获取长期有效登录指令 页面上传镜像 下载镜像 共享私有镜像 添加触发器 自动同步镜像 镜像安全扫描 镜像中心 设置镜像加速器 组织管理 授权管理 创建用户并授权使用SWR 如果您需要对您所拥有的容器镜像服务(SW
for Container!”。 图2 镜像版本v2 确认是否触发成功。 在“触发器”页签,单击触发器对应的行的“触发历史”,查看触发结果为“成功”。 图3 触发结果 工作负载的访问页面已变更为“Hello, SoftWare Repository for Container!”。 示例2:触发条件为“正则触发”
listSharedReposDetails 创建按账号共享 imagerepositoryaccessdomain createImageRepositoryAccessDomain 删除账号共享 imagerepositoryaccessdomain deleteImageRepositoryAccessDomain
ListImageAutoSyncReposDetailsRequest request = new ListImageAutoSyncReposDetailsRequest(); try { ListImageAutoSyncReposDetailsResponse response
type为regular时为正则表达式 container String 需更新的container名,默认为所有container created_at String 创建时间 creator_name String 创建人 detail String 详情 result String
Subject-Token的值)。 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 domain_id String 租户ID domain_name String 租户名称 namspace_num Integer 当前租户的命名空间个数 repo_num
omain} swr:repo:deleteRepoDomain √ 更新镜像共享账号 PATCH /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}
updateImmutableRule 增加域名 addDomainName addDomainName 更新域名 updateDomainName updateDomainName 删除域名 deleteDomainName deleteDomainName 创建订单 instance createOrder
String 创建时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00 domainID String 租户ID domainName String 租户名 id Integer ID namespace String 组织名 override
改造后,再容器化。这样做可以带来如下好处: 单独扩展:拆分为微服务后,可单独增加或缩减每个微服务的实例数量。 提升开发速度:各微服务之间解耦,某个微服务的代码开发不影响其他微服务。 通过隔离确保安全:整体应用中,若存在安全漏洞,一旦被攻击,所有功能的权限都可能会被窃取。微服务架
IAM用户,并授权控制他们对华为云资源的访问范围。例如您的员工中有负责软件开发的人员,您希望他们拥有容器镜像服务(SWR)的使用权限,但是不希望他们拥有删除SWR等高危操作的权限,那么您可以使用IAM为开发人员创建用户,通过授予仅能使用SWR,但是不允许删除SWR的权限,控制他们对SWR资源的使用范围。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
问题原因:您在国内机器往国外推镜像,网速慢,偶现连接失败。 errorDetail":{"message":"error parsing HTTP 404 response body: no error details found in HTTP response body 问题现象:使用客户端上传镜像,报如下所示错误:
please wait ... Start to handle images tasks, please wait ... Images(38) migration finished, 0 images tasks failed, 0 tasks generate failed 示例如下:
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great