{"id":17756,"date":"2022-10-06T15:47:22","date_gmt":"2022-10-06T07:47:22","guid":{"rendered":"https:\/\/www.wqeq.com\/?p=17756"},"modified":"2022-10-06T15:48:21","modified_gmt":"2022-10-06T07:48:21","slug":"centos-docker%e5%ae%89%e8%a3%85gitlab","status":"publish","type":"post","link":"https:\/\/www.wqeq.com\/?p=17756","title":{"rendered":"centos docker\u5b89\u88c5gitlab"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u51c6\u5907<\/h2>\n\n\n\n<p>\u9996\u5148\u51c6\u5907\u5982\u4e0b\u76ee\u5f55\uff08\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff09\u4f5c\u4e3a\u5bbf\u4e3b\u673a\u7684\u6620\u5c04\u76ee\u5f55<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wqeq.com\/wp-content\/uploads\/2022\/08\/image-12.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"92\" src=\"https:\/\/www.wqeq.com\/wp-content\/uploads\/2022\/08\/image-12.png\" alt=\"\" class=\"wp-image-17757\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u62c9\u53d6docker gitlab\u5e76\u914d\u7f6e\u6620\u5c04<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>docker pull gitlab\/gitlab-ce<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wqeq.com\/wp-content\/uploads\/2022\/08\/image-13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"478\" src=\"https:\/\/www.wqeq.com\/wp-content\/uploads\/2022\/08\/image-13.png\" alt=\"\" class=\"wp-image-17758\"\/><\/a><\/figure>\n\n\n\n<p>\u62c9\u53d6\u4e0b\u6765\u7684\u955c\u50cf2.3G\uff0c\u6709\u70b9\u5927<\/p>\n\n\n\n<p>\u521b\u5efa\u5bb9\u5668\u5e76\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d  -p 1443:443 -p 10080:80 -p 222:22 --name gitlab --restart always -v \/home\/gitlab\/config:\/etc\/gitlab -v \/home\/gitlab\/logs:\/var\/log\/gitlab -v \/home\/gitlab\/data:\/var\/opt\/gitlab gitlab\/gitlab-ce\n<\/code><\/pre>\n\n\n\n<p>\u4e3b\u8981\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-d: \u540e\u53f0\u542f\u52a8\n-p 10080:80 : -p\u7aef\u53e3\u6620\u5c04\uff0c\u5c06\u5bb9\u5668\u768480\u7aef\u53e3\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u768410080\uff0c\u4e5f\u5c31\u662f\u8bf4\u5f53\u4f60\u5b89\u88c5\u6210\u529f\u540e\u901a\u8fc7IP:10080\u53ef\u4ee5\u8bbf\u95eegitlab\n--name gitlab \u7ed9\u4f60\u7684\u5bb9\u5668\u547d\u540d\u4e3agitlab \u65b9\u4fbf\u540e\u7eed\u64cd\u4f5c\uff0c\u6bd5\u7adf\u901a\u8fc7\u5bb9\u5668ID\u8fdb\u884c\u64cd\u4f5c\u8fc7\u4e8e\u9ebb\u70e6\n-v \/home\/gitlab\/config:\/etc\/gitlab \u6587\u4ef6\u6620\u5c04-\u5c06\u5bb9\u5668\u5185\u90e8\u7684\/etc\/gitlab\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u7684\/home\/gitlab\/config\n\u6700\u540e gitlab\/gitlab-ce \u4f60\u662f\u6839\u636e\u90a3\u4e2a\u955c\u50cf\u542f\u52a8\u7684\u8be5\u5bb9\u5668\uff08\u4e5f\u5c31\u662f\u4f60\u4e0a\u9762\u62c9\u53d6\u7684gitlab\u7684\u955c\u50cf\u540d\uff09<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wqeq.com\/wp-content\/uploads\/2022\/08\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1650\" height=\"51\" src=\"https:\/\/www.wqeq.com\/wp-content\/uploads\/2022\/08\/image-14.png\" alt=\"\" class=\"wp-image-17759\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u653e\u5f03<\/h2>\n\n\n\n<p>\u7531\u4e8egitlab\u5360\u7528\u5185\u5b58\u5b9e\u5728\u592a\u5927\uff0c\u9700\u89814G\uff0c\u672c\u4eba\u4e70\u7684\u817e\u8baf\u4e91\u670d\u52a1\u5668\u603b\u5171\u5185\u5b58\u4e5f\u53ea\u67094G\uff0c\u5e76\u4e14\u8fd8\u8981\u8dd1\u4e00\u4e9b\u5176\u4ed6\u4efb\u52a1\uff0c\u5bfc\u81f4\u8fd0\u884c\u65f6\u603b\u662f\u5d29\u6e83\uff0c\u751a\u81f3\u5427\u670d\u52a1\u5668\u90fd\u5361\u6302\u4e862\u6b21\uff0c\u6240\u4ee5\u4e0d\u5f97\u4e0d\u653e\u5f03\uff0c\u4f46\u662f\u5b89\u88c5\u65b9\u5f0f\u5982\u4e0a\uff0c\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u8fd8\u662f\u8001\u8001\u5b9e\u5b9e\u7528\u7801\u4e91\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u51c6\u5907 \u9996\u5148\u51c6\u5907\u5982\u4e0b\u76ee\u5f55\uff08\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff09\u4f5c\u4e3a\u5bbf\u4e3b\u673a\u7684\u6620\u5c04\u76ee\u5f55 \u4e8c\u3001\u62c9\u53d6docker gitlab\u5e76\u914d\u7f6e\u6620\u5c04  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wqeq.com\/index.php?rest_route=\/wp\/v2\/posts\/17756"}],"collection":[{"href":"https:\/\/www.wqeq.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wqeq.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wqeq.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wqeq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17756"}],"version-history":[{"count":2,"href":"https:\/\/www.wqeq.com\/index.php?rest_route=\/wp\/v2\/posts\/17756\/revisions"}],"predecessor-version":[{"id":18206,"href":"https:\/\/www.wqeq.com\/index.php?rest_route=\/wp\/v2\/posts\/17756\/revisions\/18206"}],"wp:attachment":[{"href":"https:\/\/www.wqeq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wqeq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wqeq.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}