Difference between revisions of "Container registry"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
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 [[docker push|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 ==
 
== Related ==
Line 22: Line 35:
 
* <code>[[ghcr.io]]</code>
 
* <code>[[ghcr.io]]</code>
 
* <code>[[gcr.io]]</code>
 
* <code>[[gcr.io]]</code>
* <code>[[crane]]</code>
+
* <code>[[mcr.microsoft.com]]</code>
 +
* <code>[[crane]]</code> tool
 +
* [[skopeo]]
 
* [[OCI registry]]
 
* [[OCI registry]]
 
* <code>[[docker push]], [[aws ecr put-image]]</code>
 
* <code>[[docker push]], [[aws ecr put-image]]</code>
 +
* [[repository:]] in [[values.yaml]]
  
 
== See also ==
 
== See also ==

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]

  1. Use public docker hub container registry to download and run you first image
  2. Install GitLab and enable container registry in: /etc/gitlab/gitlab.rb[9]
  3. Pull an Image from a Private Registry in Kubernetes
  4. Understand kubectl create secret docker-registry in K8s

Related[edit]

See also[edit]


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

Advertising: