azure - 如何使用containerd将图像导入azure容器寄存器

标签 azure docker azure-aks azure-container-registry containerd

我目前使用 kubectl ctr 将镜像文件导入到本地 vm k3s 设置的 containerd 注册表中。

sudo /usr/local/bin/k3s ctr image import file.image

但是,我现在尝试使用 azure kubernetes 服务(aks),但我仍然不想使用 docker。我在网上找到的大多数有关将镜像推送到 AKS 的文档都涉及使用 docker 注册表,但目前这对我来说不是一个选择。

我的问题是: 我如何使用 ctr 或任何其他 Containerd 操作将 file.image 推送到 azure 容器注册表,而不涉及 docker 或 docker hub。有没有办法将图像从本地容器注册表传输到 azure 容器注册表?

最佳答案

您仍然可以使用 ctr 来管理容器镜像,并具有以下功能,包括您正在寻找的推送和标记操作

请查看文档; https://www.mankier.com/8/ctr#images,_image,_i

enter image description here

关于azure - 如何使用containerd将图像导入azure容器寄存器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71757133/

相关文章:

azure - 无法将公共(public) IP 地址分配给 AKS : pending forever

django - 在 nginx-ingress 后面的 aks 上托管 django

java - 使用 WebFlux 时如何在请求中检索 OAuth2AuthorizedClient

c# - ILMerge:如何合并Azure运行时库?

linux - 本地主机在Docker容器中是什么意思?

非标准资源组中的 Azure AKS 公共(public) IP

c# - 为什么会不断调用 ICommunicationListener.Abort()?

linux - “git: command not found” 运行时 “pm2 deploy production setup”

docker - Linux + Docker-如何从Docker容器中运行主机的应用程序?

docker - 使用 traefik(v2) 路由器在特定端口上请求转发