{"id":5571,"date":"2019-09-13T18:45:28","date_gmt":"2019-09-13T23:45:28","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5571"},"modified":"2019-09-17T23:11:05","modified_gmt":"2019-09-18T04:11:05","slug":"gitlab-using-the-built-in-docker-registry","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5571","title":{"rendered":"GitLab &#8211; Using the built-in Docker Registry"},"content":{"rendered":"<p>GitLab has a built-in Docker registry that you can use for projects. With the Omnibus install (or a container based on the official Docker image), enabling the registry is as simple as adding a config line to your gitlab.rb (this assumes you have a SSL key at \/etc\/gitlab\/ssl named with the fully qualified hostname and using .crt for the public key and .key for the private key<\/p>\n<p>registry_external_url &#8216;https:\/\/gitlab.example.com:4567&#8217;<\/p>\n<p>Then just tag an image to a project&#8217;s repository URL<\/p>\n<p>docker tag ossautomation\/cent68php56 gitlab.example.com:4567\/lisa\/ljtestproject-dockerexecutor<\/p>\n<p>Log in and push the image:<\/p>\n<p>D:\\git\\ljtestproject-dockerexecutor&gt;docker login gitlab.example.com:4567<br \/>\nUsername: lisa<br \/>\nPassword:<br \/>\nLogin Succeeded<\/p>\n<p>D:\\git\\ljtestproject-dockerexecutor&gt;docker push gitlab.example.com:4567\/lisa\/ljtestproject-dockerexecutor<br \/>\nThe push refers to repository [gitlab.example.com:4567\/lisa\/ljtestproject-dockerexecutor]<br \/>\n45c3e2f5d139: Pushing [=&gt; ] 33.31MB\/1.619GB<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitLab has a built-in Docker registry that you can use for projects. With the Omnibus install (or a container based on the official Docker image), enabling the registry is as simple as adding a config line to your gitlab.rb (this assumes you have a SSL key at \/etc\/gitlab\/ssl named with the fully qualified hostname and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[623,30],"tags":[231,232],"class_list":["post-5571","post","type-post","status-publish","format-standard","hentry","category-containerized-development-and-deployment","category-system-administration","tag-docker","tag-gitlab"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5571"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5571\/revisions"}],"predecessor-version":[{"id":5572,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5571\/revisions\/5572"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}