{"id":4605,"date":"2022-11-15T20:32:04","date_gmt":"2022-11-15T12:32:04","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4605"},"modified":"2023-08-18T22:22:46","modified_gmt":"2023-08-18T14:22:46","slug":"centos-docker","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4605","title":{"rendered":"Centos\u4e0b\u5b89\u88c5Docker\u548cCompose"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u3010\u53ef\u9009\u3011 \u5982\u679c\u5728\u56fd\u5185\uff0c\u53ef\u80fd\u9700\u8981\u6dfb\u52a0\u56fd\u5185\u955c\u50cf\nsudo tee \/etc\/docker\/daemon.json &lt;&lt;-'EOF'\n{\n  \"registry-mirrors\": [\"https:\/\/yxzrazem.mirror.aliyuncs.com\"]\n}\nEOF\n\nsudo systemctl daemon-reload\nsudo systemctl restart docker\n\n---\n\nyum install docker\nservice docker start\n\n---\n\n[\u5b89\u88c5 docker-compose]\nhttps:\/\/github.com\/docker\/compose\/releases\n\u4e0b\u8f7ddocker-compose-Linux-x86_64\n\u66f4\u540d\u4e3adocker-compose\n\u79fb\/usr\/local\/bin\u76ee\u5f55\u4e0b<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4605"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4605"}],"version-history":[{"count":4,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4605\/revisions"}],"predecessor-version":[{"id":5020,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4605\/revisions\/5020"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}