Difference between revisions of "Container registry"
(25 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== Docker == | == Docker == | ||
− | A [[Docker]] registry is a repository for [[Docker]] images. Docker clients connect to registries to download (<code>docker pull</code>) images for use or upload (<code>docker push</code>) images. A Docker Registry HTTP API is available to facilitate distribution of images to the docker engine<ref>https://docs.docker.com/registry/spec/api/</ref> with support for image verification, resumable push and pull operations and layer deduplication. | + | A [[Docker]] registry is a repository for [[Docker]] images. Docker clients connect to registries to download (<code>[[docker pull]]</code>) images for use or upload (<code>[[docker push]]</code>) images. A Docker Registry HTTP API is available to facilitate distribution of images to the docker engine<ref>https://docs.docker.com/registry/spec/api/</ref> with support for image verification, resumable push and pull operations and layer deduplication. |
Docker Registries can be public or private. Two main public registries are Docker Hub and Docker Cloud. | Docker Registries can be public or private. Two main public registries are Docker Hub and Docker Cloud. | ||
Docker Hub is the default registry where Docker looks for images. Docker registries also allow the creation of notifications based on events.<ref>https://docs.docker.com/registry/notifications/ </ref> | Docker Hub is the default registry where Docker looks for images. Docker registries also allow the creation of notifications based on events.<ref>https://docs.docker.com/registry/notifications/ </ref> | ||
+ | |||
+ | * [[docker push]] | ||
+ | * [[docker pull]] | ||
+ | * [[docker login]] | ||
== ECR == | == ECR == | ||
[[AWS]] ECR<ref>https://aws.amazon.com/ecr/</ref> is a managed container registry service from AWS available since December 2015<ref>https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/</ref> with tagging (see <code>[[docker tag]]</code>) support from December 2018<ref>https://aws.amazon.com/about-aws/whats-new/2018/12/amazon-ecr-now-allows-repository-tagging/</ref> | [[AWS]] ECR<ref>https://aws.amazon.com/ecr/</ref> is a managed container registry service from AWS available since December 2015<ref>https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/</ref> with tagging (see <code>[[docker tag]]</code>) support from December 2018<ref>https://aws.amazon.com/about-aws/whats-new/2018/12/amazon-ecr-now-allows-repository-tagging/</ref> | ||
+ | |||
+ | * <code>[[aws ecr put-image]]</code> | ||
+ | * <code>[[aws ecr list-images]]</code> | ||
+ | * <code>[[aws ecr describe-images]]</code> | ||
+ | * <code>[[aws ecr get-login]]</code> | ||
+ | |||
+ | Security: <code>[[aws_ecr_registry_scanning_configuration]]</code> | ||
== Gitlab Container registry == | == Gitlab Container registry == | ||
Line 14: | Line 25: | ||
== Activities == | == Activities == | ||
− | # Use public docker hub container registry to download and run you first image | + | # Use public [[docker hub]] container registry to [[docker pull|download]] and run you first image |
− | # Install [[GitLab]] and enable container registry in: <code>/etc/gitlab/gitlab.rb</code><ref>https://docs.gitlab.com/ee/administration/packages/container_registry.html#container-registry-storage-driver</ref> | + | # Install [[GitLab]] and enable container registry in: <code>[[/etc/gitlab/gitlab.rb]]</code><ref>https://docs.gitlab.com/ee/administration/packages/container_registry.html#container-registry-storage-driver</ref> |
+ | # [[Pull an Image from a Private Registry in Kubernetes]] | ||
+ | # Understand <code>[[kubectl create secret docker-registry]]</code> in K8s | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[registry.k8s.io]]</code> | ||
+ | * <code>[[registry.access.redhat.com]]</code> | ||
+ | * <code>[[ghcr.io]]</code> | ||
+ | * <code>[[gcr.io]]</code> | ||
+ | * <code>[[mcr.microsoft.com]]</code> | ||
+ | * <code>[[crane]]</code> tool | ||
+ | * [[skopeo]] | ||
+ | * [[OCI registry]] | ||
+ | * <code>[[docker push]], [[aws ecr put-image]]</code> | ||
+ | * [[repository:]] in [[values.yaml]] | ||
== See also == | == See also == | ||
* {{Container Registry}} | * {{Container Registry}} | ||
+ | * {{OCI registry}} | ||
* {{Registry}} | * {{Registry}} | ||
Latest revision as of 08:39, 10 September 2024
Container registry is a software that enables container image storage and management. Different Container Registry are available such as AWS ECR, Google Cloud Container Registry, Azure Container Registry (ACR), Jfrog Docker Registry [1], GitLab Container registry[2] or Docker Hub.
Docker[edit]
A Docker registry is a repository for Docker images. Docker clients connect to registries to download (docker pull
) images for use or upload (docker push
) images. A Docker Registry HTTP API is available to facilitate distribution of images to the docker engine[3] with support for image verification, resumable push and pull operations and layer deduplication.
Docker Registries can be public or private. Two main public registries are Docker Hub and Docker Cloud. Docker Hub is the default registry where Docker looks for images. Docker registries also allow the creation of notifications based on events.[4]
ECR[edit]
AWS ECR[5] is a managed container registry service from AWS available since December 2015[6] with tagging (see docker tag
) support from December 2018[7]
Security: aws_ecr_registry_scanning_configuration
Gitlab Container registry[edit]
Gitlab Container registry supports different storage backends such us local mounted filesystem or Microsoft Azure Blob Storage, Google Cloud Storage, AWS S3, OpenStack Swift Object Storage or Aliyun OSS.[8]
Activities[edit]
- Use public docker hub container registry to download and run you first image
- Install GitLab and enable container registry in:
/etc/gitlab/gitlab.rb
[9] - Pull an Image from a Private Registry in Kubernetes
- Understand
kubectl create secret docker-registry
in K8s
Related[edit]
registry.k8s.io
registry.access.redhat.com
ghcr.io
gcr.io
mcr.microsoft.com
crane
tool- skopeo
- OCI registry
docker push, aws ecr put-image
- repository: in values.yaml
See also[edit]
- Container Registry: JFrog Container Registry, AWS ECR, Azure container registry, VMware Harbor Registry, Google Cloud Registry, Amazon Elastic Container Registry (ECR), GitLab container registry,
crane, gcr.io, ghcr.io
- OCI registry, ORAS,
oci://, helm push
, Container registry - Registry, Container registry, infrastructure registry, OCI registry, Docker Hub
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source wikiversity
- ↑ https://www.jfrog.com/confluence/display/RTF/Docker+Registry
- ↑ https://docs.gitlab.com/ee/user/packages/container_registry/
- ↑ https://docs.docker.com/registry/spec/api/
- ↑ https://docs.docker.com/registry/notifications/
- ↑ https://aws.amazon.com/ecr/
- ↑ https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/
- ↑ https://aws.amazon.com/about-aws/whats-new/2018/12/amazon-ecr-now-allows-repository-tagging/
- ↑ https://docs.gitlab.com/ee/administration/packages/container_registry.html#container-registry-storage-driver
- ↑ https://docs.gitlab.com/ee/administration/packages/container_registry.html#container-registry-storage-driver
Advertising: