All Projects → samuelkarp → amazon-ecr-containerd-resolver-ARCHIVED

samuelkarp / amazon-ecr-containerd-resolver-ARCHIVED

Licence: Apache-2.0 license
The Amazon ECR containerd resolver is an implementation of a containerd Resolver and Fetcher that can pull images from and push images to Amazon ECR using the Amazon ECR API instead of the Docker Registry API.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to amazon-ecr-containerd-resolver-ARCHIVED

missing-container-metrics
Prometheus exporter for container metrics cAdvisor won't give you
Stars: ✭ 143 (+1330%)
Mutual labels:  containerd
sbt-ecr
An SBT plugin for managing Docker images within Amazon ECR.
Stars: ✭ 52 (+420%)
Mutual labels:  amazon-ecr
data-transfer-hub
Seamless User Interface for replicating data into AWS.
Stars: ✭ 102 (+920%)
Mutual labels:  amazon-ecr
Talos
Talos is a modern OS for Kubernetes.
Stars: ✭ 2,390 (+23800%)
Mutual labels:  containerd
Containerd
An open and reliable container runtime
Stars: ✭ 9,956 (+99460%)
Mutual labels:  containerd
Follow Me Install Kubernetes Cluster
和我一步步部署 kubernetes 集群
Stars: ✭ 6,662 (+66520%)
Mutual labels:  containerd
lima-gui
Making a GUI for lima VM
Stars: ✭ 36 (+260%)
Mutual labels:  containerd
vhive
vHive: Open-source framework for serverless experimentation
Stars: ✭ 134 (+1240%)
Mutual labels:  containerd
ansible-role-docker arm
Ansible Role - Docker for ARM and Pi
Stars: ✭ 71 (+610%)
Mutual labels:  containerd
microk8s-kata-containers
Kata Containers with MicroK8s
Stars: ✭ 32 (+220%)
Mutual labels:  containerd
nomad-driver-containerd
Nomad task driver for launching containers using containerd.
Stars: ✭ 152 (+1420%)
Mutual labels:  containerd
circuit
Container Network Management
Stars: ✭ 43 (+330%)
Mutual labels:  containerd
lima
Linux virtual machines, typically on macOS, for running containerd
Stars: ✭ 8,723 (+87130%)
Mutual labels:  containerd
konfigadm
konfigadm is a declarative configuration management tool and image builder focused on bootstrapping nodes for container-based environments.
Stars: ✭ 26 (+160%)
Mutual labels:  containerd
CKS-Exercises-Certified-Kubernetes-Security-Specialist
A set of curated exercises to help you prepare for the CKS exam
Stars: ✭ 124 (+1140%)
Mutual labels:  containerd
amazon-ecs-shim-loggers-for-containerd
Logger shim repository for streaming container logs when using Containerd
Stars: ✭ 35 (+250%)
Mutual labels:  containerd
fluentbit-containerd-cri-o-json-log
Parsing CRI JSON logs with Fluent Bit - applies to fluentbit, kubernetes, containerd and cri-o
Stars: ✭ 58 (+480%)
Mutual labels:  containerd
ansible-role-containerd
Ansible Role - containerd.io
Stars: ✭ 45 (+350%)
Mutual labels:  containerd

Amazon ECR containerd resolver

Build Status

The Amazon ECR containerd resolver is an implementation of a containerd Resolver, Fetcher, and Pusher that can pull images from Amazon ECR and push images to Amazon ECR using the Amazon ECR API instead of the Docker Registry API.

Note: This repository is a proof-of-concept and is not recommended for production use.

Usage

Pull images

resolver, _ := ecr.NewResolver()
img, err := client.Pull(
    namespaces.NamespaceFromEnv(context.TODO()),
    "ecr.aws/arn:aws:ecr:us-west-2:123456789012:repository/myrepository:mytag",
    containerd.WithResolver(resolver),
    containerd.WithPullUnpack,
    containerd.WithSchema1Conversion)

Push images

ctx := namespaces.NamespaceFromEnv(context.TODO())

img, _ := client.ImageService().Get(
	ctx,
	"docker.io/library/busybox:latest")
resolver, _ := ecr.NewResolver()
err = client.Push(
	ctx,
	"ecr.aws/arn:aws:ecr:us-west-2:123456789012:repository/myrepository:mytag",
	img.Target,
	containerd.WithResolver(resolver))

Two small example programs are provided in the example directory demonstrating how to use the resolver with containerd.

ref

containerd specifies images with a ref. refs are different from Docker image names, as refs intend to encode an identifier, but not a retrieval mechanism. refs start with a DNS-style namespace that can be used to select separate Resolvers to use.

The canonical ref format used by the amazon-ecr-containerd-resolver is ecr.aws/ followed by the ARN of the repository and a label and/or a digest.

Building

The Amazon ECR containerd resolver manages its dependencies with Go 1.11 modules and works best when used with Go 1.11 or greater. If you have Go 1.11 or greater installed, you can build the example programs with make.

License

The Amazon ECR containerd resolver is licensed under the Apache 2.0 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].