{"id":31139,"date":"2022-09-06T02:31:26","date_gmt":"2022-09-06T02:31:26","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=31139"},"modified":"2022-12-23T05:47:31","modified_gmt":"2022-12-23T05:47:31","slug":"gitlab-tutorials-gitlab-container-registry","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/gitlab-tutorials-gitlab-container-registry\/","title":{"rendered":"GitLab Tutorials: GitLab Container Registry"},"content":{"rendered":"\n<p>With the Docker Container Registry integrated into GitLab, every GitLab project can have its own space to store its Docker images.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"view-the-container-registry\">View the Container Registry<a href=\"https:\/\/docs.gitlab.com\/ee\/user\/packages\/container_registry\/#view-the-container-registry\"><\/a><\/h2>\n\n\n\n<p>You can view the Container Registry for a project or group.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to your project or group.<\/li><li>Go to&nbsp;<strong>Packages and registries &gt; Container Registry<\/strong>.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"use-images-from-the-container-registry\">Use images from the Container Registry<a href=\"https:\/\/docs.gitlab.com\/ee\/user\/packages\/container_registry\/#use-images-from-the-container-registry\"><\/a><\/h2>\n\n\n\n<p>To download and run a container image hosted in the GitLab Container Registry:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Copy the link to your container image:<ul><li>Go to your project or group\u2019s\u00a0<strong>Packages and registries > Container Registry<\/strong>\u00a0and find the image you want.<\/li><li>Next to the image name, select\u00a0<strong>Copy<\/strong>.<a href=\"https:\/\/docs.gitlab.com\/ee\/user\/packages\/container_registry\/img\/container_registry_hover_path_13_4.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li><\/ul><\/li><li>Use\u00a0<code>docker run<\/code>\u00a0with the image link:<code>docker run [options] registry.example.com\/group\/project\/image [arguments]<\/code><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Check if the GitLab Container Registry is enabled<\/strong><\/h2>\n\n\n\n<p>As administrator:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Check if the Container Registry is enabled by confirmin the availability ot two areas in the GitLab: \u2018Admin area\u2019 &gt;&nbsp;<strong>Settings<\/strong>&nbsp;&gt;&nbsp;<strong>CI\/CD<\/strong>&nbsp;OR\u2019Admin Area\u2019 -&gt;&nbsp;<strong>Settings<\/strong>&nbsp;&gt;&nbsp;<strong>Repository<\/strong><\/li><\/ul>\n\n\n\n<p>As a user:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The project web page in GitLab instance will show a warning in the top of the project page if the\u00a0<code>Container Registry<\/code>\u00a0is not enabled:<br>\u201cContainer registry is not enabled on this GitLab instance. Ask an administrator to enable it in order for Auto DevOps to work.\u201d<\/li><li>If the project is public, so is the\u00a0<strong>Container Registry<\/strong>. It should be under\u00a0<strong>Packages &amp; Registries<\/strong>\u00a0>\u00a0<strong>Container Registry<\/strong>. If its not in your sidebar then it is not enabled. OR<strong>Project Settings<\/strong>\u00a0>\u00a0<strong>Container Registry<\/strong>\u00a0if it is not shown the it is not\u00a0<strong>enabled<\/strong>\u00a0in your\u00a0<strong>GitLab<\/strong>\u00a0instance.<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reference<\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.gitlab.com\/ee\/user\/packages\/container_registry\/\">https:\/\/docs.gitlab.com\/ee\/user\/packages\/container_registry\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.gitlab.com\/ee\/administration\/packages\/container_registry.html\">https:\/\/docs.gitlab.com\/ee\/administration\/packages\/container_registry.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the Docker Container Registry integrated into GitLab, every GitLab project can have its own space to store its Docker images. View the Container Registry You can&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-31139","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/31139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=31139"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/31139\/revisions"}],"predecessor-version":[{"id":31141,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/31139\/revisions\/31141"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=31139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=31139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=31139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}