{"id":2964,"date":"2024-11-17T23:24:55","date_gmt":"2024-11-17T15:24:55","guid":{"rendered":"https:\/\/www.chencuo.top\/?p=2964"},"modified":"2024-11-17T23:24:55","modified_gmt":"2024-11-17T15:24:55","slug":"docker%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/www.chencuo.top\/?p=2964","title":{"rendered":"docker\u90e8\u7f72"},"content":{"rendered":"\n<p>\u57fa\u4e8ecentos 7.9.2009 x86_64 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">docker\u57fa\u7840\u5b89\u88c5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b89\u88c5yum-utils<\/h3>\n\n\n\n<p>\u7528\u6765\u5141\u8bb8yum-config\u62c9\u53d6docker\u6e90<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-13.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"161\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-13.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-2986\"  sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u62c9\u53d6docker\u6e90<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yum-config-manager --add-repo https:\/\/mirrors.aliyun.com\/docker-ce\/linux\/centos\/docker-ce.repo\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-17-232409-1024x310.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-17-232409-1024x310.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-2990\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u5220\u9664\u65e7\u7248<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yum remove docker \\\n                  docker-client \\\n                  docker-client-latest \\\n                  docker-common \\\n                  docker-latest \\\n                  docker-latest-logrotate \\\n                  docker-logrotate \\\n                  docker-engine<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-15.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"417\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-15.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-2993\"  sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b89\u88c5docker ce \u793e\u533a\u7248<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y\n\u6211\u7684k8s\u90e8\u7f72\u4f7f\u7528\u7684\u662f\uff1a\nyum install docker-ce-24.0.6 docker-ce-cli-24.0.6 containerd.io docker-compose-plugin\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">docker\u5f00\u542f\u4e0e\u81ea\u542f\u52a8<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-16-1024x73.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"73\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-16-1024x73.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-2999\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">docker\u9a8c\u8bc1<\/h3>\n\n\n\n<p>\u67e5\u770b\u7248\u672c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-36.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"52\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-36.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3142\"  sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/div><\/figure>\n\n\n\n<p>\u67e5\u770b\u4fe1\u606f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@docker ~]# docker info\nClient: Docker Engine - Community\n Version:    24.0.6\n Context:    default\n Debug Mode: false\n Plugins:\n  buildx: Docker Buildx (Docker Inc.)\n    Version:  v0.14.1\n    Path:     \/usr\/libexec\/docker\/cli-plugins\/docker-buildx\n  compose: Docker Compose (Docker Inc.)\n    Version:  v2.27.1\n    Path:     \/usr\/libexec\/docker\/cli-plugins\/docker-compose\n\nServer:\n Containers: 0\n  Running: 0\n  Paused: 0\n  Stopped: 0\n Images: 0\n Server Version: 24.0.6\n Storage Driver: overlay2\n  Backing Filesystem: xfs\n  Supports d_type: true\n  Using metacopy: false\n  Native Overlay Diff: true\n  userxattr: false\n Logging Driver: json-file\n Cgroup Driver: cgroupfs\n Cgroup Version: 1\n Plugins:\n  Volume: local\n  Network: bridge host ipvlan macvlan null overlay\n  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog\n Swarm: inactive\n Runtimes: io.containerd.runc.v2 runc\n Default Runtime: runc\n Init Binary: docker-init\n containerd version: d2d58213f83a351ca8f528a95fbd145f5654e957\n runc version: v1.1.12-0-g51d5e94\n init version: de40ad0\n Security Options:\n  seccomp\n   Profile: builtin\n Kernel Version: 3.10.0-1160.el7.x86_64\n Operating System: CentOS Linux 7 (Core)\n OSType: linux\n Architecture: x86_64\n CPUs: 6\n Total Memory: 4.589GiB\n Name: docker\n ID: 5b645e99-f4ab-4dd3-8c2f-3a9a5a98ae68\n Docker Root Dir: \/var\/lib\/docker\n Debug Mode: false\n Experimental: false\n Insecure Registries:\n  127.0.0.0\/8\n Registry Mirrors:\n  https:&#47;&#47;qg5zetce.mirror.aliyuncs.com\/\n Live Restore Enabled: false\n<\/code><\/pre>\n\n\n\n<p>\u914d\u7f6e\u963f\u91cc\u4e91\u955c\u50cf\u52a0\u901f\u5668<\/p>\n\n\n\n<p>\u5730\u5740\uff1a<a href=\"https:\/\/cr.console.aliyun.com\/cn-hangzhou\/instances\/mirrors\">\u5bb9\u5668\u955c\u50cf\u670d\u52a1<\/a><\/p>\n\n\n\n<p>\u955c\u50cf\u5de5\u5177\u2014\u2014\u955c\u50cf\u52a0\u901f\u5668<\/p>\n\n\n\n<p>\u9009\u62e9centos\uff0c\u6309\u7167\u6559\u7a0b\u8fdb\u884c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-37.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"228\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-37.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3143\"  sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/div><\/figure>\n\n\n\n<p>\u963f\u91cc\u4e91\u7684\u6e90\uff0c\u597d\u50cf\u4e5f\u6b7b\u4e86\u6211\u9189\u4e86<\/p>\n\n\n\n<p>\u8fd9\u91cc\u4f7f\u7528\u56fd\u5185\u5c0f\u4e91<\/p>\n\n\n\n<p><a href=\"https:\/\/docker.1panel.live\">1Panel<\/a>\u548c<a href=\"https:\/\/hub.rat.dev\">\u8017\u5b50\u9762\u677f<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"registry-mirrors\": &#91;\n\"https:\/\/4a1qkm2x.mirror.aliyuncs.com\",\n\"https:\/\/docker.1panel.live\",\n\"https:\/\/hub.rat.dev\"\n]\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-39.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"280\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-39.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3149\"  sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-40.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"159\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-40.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3150\"  sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/div><\/figure>\n\n\n\n<p>\u8fd0\u884chello-world\u955c\u50cf<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-18-000051.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-18-000051.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3020\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">registry\u79c1\u6709\u4ed3\u5e93<\/h3>\n\n\n\n<p>\u62c9\u53d6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker pull  registry<\/code><\/pre>\n\n\n\n<p>\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d -p 5000:5000 --restart=always --name registry registry:latest<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-19-120650-1024x109.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-19-120650-1024x109.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3155\"\/><\/div><\/figure>\n\n\n\n<p>web\u67e5\u770b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u865a\u62df\u673aip:5000\/v2\/<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-19-120805-1024x192.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2024-11-19-120805-1024x192.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3157\"\/><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">harbor\u4ed3\u5e93<\/h3>\n\n\n\n<p>\u901a\u8fc7linux\u547d\u4ee4\u62c9\u53d6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/goharbor\/harbor\/releases\/download\/v2.10.0\/harbor-offline-installer-v2.10.0.tgz\n<\/code><\/pre>\n\n\n\n<p>github\u79bb\u7ebf\u4e0b\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/goharbor\/harbor\/releases<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u5c55\u793alinux\u5728\u7ebf\u62c9\u53d6<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-41-1024x297.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"297\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-41-1024x297.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3163\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p>\u9700\u8981\u5148\u628a\u90e8\u7f72\u7684registry\u5220\u9664<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-42-1024x144.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"144\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-42-1024x144.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3165\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p>\u89e3\u538b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-43-1024x423.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-43-1024x423.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3168\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p>\u914d\u7f6e\u4e3b\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp harbor.yml.tmpl harbor.yml #\u62f7\u8d1d\n\nvim harbor.yml\n\n# Configuration file of Harbor\n\n# The IP address or hostname to access admin UI and registry service.\n# DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.\nhostname: 192.32.62.150                           ##\u6ca1\u6620\u5c04\u90a3\u5c31ip\u5730\u5740\n\n# http related config\nhttp:\n  # port for http, default is 80. If https enabled, this port will redirect to https port\n  port: 5000                                          #\u914d\u7f6e\u542f\u52a8\u7aef\u53e3\u53f7\n\n# https related config\n#https:                                                   #\u7531\u4e8e\u6ca1\u6709ssl\u8bc1\u4e66\uff0c\u5c06https\u76f8\u5173\u6ce8\u91ca\u6389\n  # https port for harbor, default is 443\n # port: 443\n  # The path of cert and key files for nginx\n  certificate: \/your\/certificate\/path\n  private_key: \/your\/private\/key\/path\n\n# # Uncomment following will enable tls communication between all harbor components\n# internal_tls:\n#   # set enabled to true means internal tls is enabled\n#   enabled: true\n#   # put your cert and key files on dir\n#   dir: \/etc\/harbor\/tls\/internal\n#   # enable strong ssl ciphers (default: false)\n#   strong_ssl_ciphers: false\n\n# Uncomment external_url if you want to enable external proxy\n# And when it enabled the hostname will no longer used\n# external_url: https:\/\/reg.mydomain.com:8433\n\n# The initial password of Harbor admin\n# It only works in first time to install harbor\n# Remember Change the admin password from UI after launching Harbor.\nharbor_admin_password: 123456                ##\u6b64\u5904\u4e3aadmin\u5bc6\u7801<\/code><\/pre>\n\n\n\n<p>\u542f\u52a8<\/p>\n\n\n\n<p>\u901a\u8fc7\u811a\u672c\u6587\u4ef6\u5b89\u88c5<\/p>\n\n\n\n<p>\u5728harbor\u6839\u76ee\u5f55\u5185<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-44.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"290\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-44.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3177\"  sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/div><\/figure>\n\n\n\n<p>\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>. install.sh\n\n&#91;root@docker harbor]# . install.sh\ndirname\uff1a\u65e0\u6548\u9009\u9879 -- b\nTry 'dirname --help' for more information.\n\n&#91;Step 0]: checking if docker is installed ...\n\nNote: docker version: 24.0.6\n\n&#91;Step 1]: checking docker-compose is installed ...\n\nNote: Docker Compose version v2.27.1\n\n&#91;Step 2]: loading Harbor images ...\nad00c0c1d948: Loading layer &#91;==================================================>]  40.11MB\/40.11MB\n7570a78aea36: Loading layer &#91;==================================================>]   9.08MB\/9.08MB\n04774e0e84f2: Loading layer &#91;==================================================>]  4.096kB\/4.096kB\n8a42710a9f5a: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\nf1990e77f8e5: Loading layer &#91;==================================================>]    197MB\/197MB\n172f5af926be: Loading layer &#91;==================================================>]   17.6MB\/17.6MB\n2bef5dd17a10: Loading layer &#91;==================================================>]  215.4MB\/215.4MB\nLoaded image: goharbor\/trivy-adapter-photon:v2.10.0\n8c10ac3a40a9: Loading layer &#91;==================================================>]  89.84MB\/89.84MB\ncc741ba6af65: Loading layer &#91;==================================================>]  65.11MB\/65.11MB\n7877ea7046dd: Loading layer &#91;==================================================>]   13.2MB\/13.2MB\n3de91a0984fe: Loading layer &#91;==================================================>]  65.54kB\/65.54kB\n4d2cda613456: Loading layer &#91;==================================================>]   2.56kB\/2.56kB\n625b81c9e514: Loading layer &#91;==================================================>]  1.536kB\/1.536kB\n6496ec4ce84e: Loading layer &#91;==================================================>]  12.29kB\/12.29kB\n2b332fb0075b: Loading layer &#91;==================================================>]  5.322MB\/5.322MB\nf8976ae46d77: Loading layer &#91;==================================================>]  457.7kB\/457.7kB\nLoaded image: goharbor\/prepare:v2.10.0\na36cb8a4e510: Loading layer &#91;==================================================>]  126.1MB\/126.1MB\nfd72ef63aacc: Loading layer &#91;==================================================>]  3.584kB\/3.584kB\n162d9960a2b9: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\nb71508b0d586: Loading layer &#91;==================================================>]   2.56kB\/2.56kB\n18c685e189cb: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\n84690af2e82b: Loading layer &#91;==================================================>]  3.584kB\/3.584kB\n8d7eb73e8207: Loading layer &#91;==================================================>]  20.48kB\/20.48kB\nLoaded image: goharbor\/harbor-log:v2.10.0\n001da4979db8: Loading layer &#91;==================================================>]  8.562MB\/8.562MB\n275281f671bf: Loading layer &#91;==================================================>]  4.096kB\/4.096kB\nf6856e2d539f: Loading layer &#91;==================================================>]   17.4MB\/17.4MB\n557317f3c1c5: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\n942b8c3060c6: Loading layer &#91;==================================================>]  32.81MB\/32.81MB\nb2bc30e737e7: Loading layer &#91;==================================================>]     51MB\/51MB\nLoaded image: goharbor\/harbor-registryctl:v2.10.0\nd5e5478da184: Loading layer &#91;==================================================>]  116.8MB\/116.8MB\nLoaded image: goharbor\/nginx-photon:v2.10.0\n74a7f6a8de8c: Loading layer &#91;==================================================>]  11.58MB\/11.58MB\n46523ccaf371: Loading layer &#91;==================================================>]   27.6MB\/27.6MB\n3cea6b428022: Loading layer &#91;==================================================>]  4.608kB\/4.608kB\n9815d4ae0f06: Loading layer &#91;==================================================>]  28.39MB\/28.39MB\nLoaded image: goharbor\/harbor-exporter:v2.10.0\n7d7e15ae8ca1: Loading layer &#91;==================================================>]  15.93MB\/15.93MB\ne13b0ff80947: Loading layer &#91;==================================================>]  111.8MB\/111.8MB\nda74a4230588: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\n89240f6f343b: Loading layer &#91;==================================================>]   59.9kB\/59.9kB\n7b00214da46a: Loading layer &#91;==================================================>]  61.95kB\/61.95kB\nLoaded image: goharbor\/redis-photon:v2.10.0\n345fdbd05997: Loading layer &#91;==================================================>]  8.562MB\/8.562MB\n5c4443929555: Loading layer &#91;==================================================>]  4.096kB\/4.096kB\n605c9788ef17: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\nb2ab56de0e45: Loading layer &#91;==================================================>]   17.4MB\/17.4MB\n950eb2734789: Loading layer &#91;==================================================>]  18.19MB\/18.19MB\nLoaded image: goharbor\/registry-photon:v2.10.0\n7693164e30e0: Loading layer &#91;==================================================>]  116.8MB\/116.8MB\n6b50b5d516aa: Loading layer &#91;==================================================>]  6.531MB\/6.531MB\n5aea217650ad: Loading layer &#91;==================================================>]  246.8kB\/246.8kB\n0b3de92ff70b: Loading layer &#91;==================================================>]  1.477MB\/1.477MB\nLoaded image: goharbor\/harbor-portal:v2.10.0\nb79ac58f353c: Loading layer &#91;==================================================>]  11.58MB\/11.58MB\n18c4c015e339: Loading layer &#91;==================================================>]  3.584kB\/3.584kB\nc6eef6a39935: Loading layer &#91;==================================================>]   2.56kB\/2.56kB\n03db56130352: Loading layer &#91;==================================================>]  58.57MB\/58.57MB\n78c9748f2d29: Loading layer &#91;==================================================>]  5.632kB\/5.632kB\ne1732f90232a: Loading layer &#91;==================================================>]  123.4kB\/123.4kB\n6b733e4833c8: Loading layer &#91;==================================================>]  80.38kB\/80.38kB\nfe6828cc147a: Loading layer &#91;==================================================>]  59.56MB\/59.56MB\n8e1349c44768: Loading layer &#91;==================================================>]   2.56kB\/2.56kB\nLoaded image: goharbor\/harbor-core:v2.10.0\n02b0385778eb: Loading layer &#91;==================================================>]  15.93MB\/15.93MB\nac2be26232ee: Loading layer &#91;==================================================>]    175MB\/175MB\n1e3e9dba5eaa: Loading layer &#91;==================================================>]  25.47MB\/25.47MB\nc7fa85d79c1c: Loading layer &#91;==================================================>]  18.14MB\/18.14MB\nf9ef6596c7ce: Loading layer &#91;==================================================>]   5.12kB\/5.12kB\ne35036cc139f: Loading layer &#91;==================================================>]  6.144kB\/6.144kB\n0cb7ded8041a: Loading layer &#91;==================================================>]  3.072kB\/3.072kB\n5d178abacde0: Loading layer &#91;==================================================>]  2.048kB\/2.048kB\n67fe09fd709b: Loading layer &#91;==================================================>]   2.56kB\/2.56kB\nd0b4aac335c4: Loading layer &#91;==================================================>]   7.68kB\/7.68kB\nLoaded image: goharbor\/harbor-db:v2.10.0\nfced8697b2c7: Loading layer &#91;==================================================>]  11.58MB\/11.58MB\naf968b902c26: Loading layer &#91;==================================================>]  3.584kB\/3.584kB\n7caaebde63bc: Loading layer &#91;==================================================>]   2.56kB\/2.56kB\nd6e3c7a6ef36: Loading layer &#91;==================================================>]  44.96MB\/44.96MB\nbc8a8ef654ea: Loading layer &#91;==================================================>]  45.75MB\/45.75MB\nLoaded image: goharbor\/harbor-jobservice:v2.10.0\n\n\n&#91;Step 3]: preparing environment ...\n\n&#91;Step 4]: preparing harbor configs ...\nprepare base dir is set to \/etc\/yum.repos.d\/harbor\nWARNING:root:WARNING: HTTP protocol is insecure. Harbor will deprecate http protocol in the future. Please make sure to upgrade to https\nGenerated configuration file: \/config\/portal\/nginx.conf\nGenerated configuration file: \/config\/log\/logrotate.conf\nGenerated configuration file: \/config\/log\/rsyslog_docker.conf\nGenerated configuration file: \/config\/nginx\/nginx.conf\nGenerated configuration file: \/config\/core\/env\nGenerated configuration file: \/config\/core\/app.conf\nGenerated configuration file: \/config\/registry\/config.yml\nGenerated configuration file: \/config\/registryctl\/env\nGenerated configuration file: \/config\/registryctl\/config.yml\nGenerated configuration file: \/config\/db\/env\nGenerated configuration file: \/config\/jobservice\/env\nGenerated configuration file: \/config\/jobservice\/config.yml\nGenerated and saved secret to file: \/data\/secret\/keys\/secretkey\nSuccessfully called func: create_root_cert\nGenerated configuration file: \/compose_location\/docker-compose.yml\nClean up the input dir\n\n\nNote: stopping existing Harbor instance ...\nWARN&#91;0000] \/etc\/yum.repos.d\/harbor\/docker-compose.yml: `version` is obsolete \n\n\n&#91;Step 5]: starting Harbor ...\nWARN&#91;0000] \/etc\/yum.repos.d\/harbor\/docker-compose.yml: `version` is obsolete \n&#91;+] Running 10\/10\n \u2714 Network harbor_harbor        Created                                                                                                                                 0.9s \n \u2714 Container harbor-log         Started                                                                                                                                 1.4s \n \u2714 Container redis              Started                                                                                                                                 2.1s \n \u2714 Container harbor-portal      Started                                                                                                                                 2.6s \n \u2714 Container harbor-db          Started                                                                                                                                 2.3s \n \u2714 Container registry           Started                                                                                                                                 2.4s \n \u2714 Container registryctl        Started                                                                                                                                 2.5s \n \u2714 Container harbor-core        Started                                                                                                                                 3.1s \n \u2714 Container nginx              Started                                                                                                                                 4.1s \n \u2714 Container harbor-jobservice  Started                                                                                                                                 3.8s \n\u2714 ----Harbor has been installed and started successfully.----\n<\/code><\/pre>\n\n\n\n<p>\u8bbf\u95ee<\/p>\n\n\n\n<p>\u8f93\u5165\uff1a\u8bbf\u95eeIP+\u7aef\u53e3<\/p>\n\n\n\n<p>\u767b\u5f55\u540e\u9875\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-45-1024x535.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"535\" data-original=\"https:\/\/www.chencuo.top\/wp-content\/uploads\/2024\/11\/image-45-1024x535.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-3182\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8ecentos 7.9.2009 x86_64 docker\u57fa\u7840\u5b89\u88c5 \u5b89\u88c5yum-utils \u7528\u6765\u5141\u8bb8yum [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,9,14],"tags":[20,27],"class_list":["post-2964","post","type-post","status-publish","format-standard","hentry","category-5","category-9","category-14","tag-docker","tag-k8s"],"_links":{"self":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/posts\/2964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2964"}],"version-history":[{"count":0,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=\/wp\/v2\/posts\/2964\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chencuo.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}