{"id":1136,"date":"2026-07-07T09:12:45","date_gmt":"2026-07-07T09:12:45","guid":{"rendered":"https:\/\/opshub.com.cn\/?p=1136"},"modified":"2026-07-07T09:13:12","modified_gmt":"2026-07-07T09:13:12","slug":"%e7%a6%bb%e7%ba%bf%e5%ae%89%e8%a3%85docker-20-10-24","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=1136","title":{"rendered":"\u79bb\u7ebf\u5b89\u88c5docker 20.10.24"},"content":{"rendered":"\n<p><a href=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/07\/docker-20.10.24.tgz\">docker-20.10.24.tgz<\/a> \uff08\u672c\u7ad9\u4e0b\u8f7d\u6e90\uff09<\/p>\n\n\n\n<p>\u81ea\u52a8\u5316\u5b89\u88c5\u811a\u672crun.sh:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nalcbltwt=\"$(\n    cd $(dirname $0)\n    pwd\n)\"\n\n__etioaictef__() {\n    echo \"installing docker\"\n    cd $alcbltwt\n    if &#91;&#91; -d \".\/docker\" ]]; then\n        \/bin\/rm -rf docker\n    fi\n    tar -zxf docker-20.10.24.tgz\n    \/bin\/cp -vf .\/docker\/* \/usr\/bin\/\n    \/bin\/rm -rf .\/docker\n    cat >\/lib\/systemd\/system\/docker.service &lt;&lt;EOF\n&#91;Unit]\nDescription=Docker Application Container Engine\nDocumentation=https:\/\/docs.docker.com\nAfter=network-online.target firewalld.service\nWants=network-online.target\n\n&#91;Service]\nType=notify\n# \u4e8c\u8fdb\u5236dockerd\u8def\u5f84\nExecStart=\/usr\/bin\/dockerd\nExecReload=\/bin\/kill -s HUP \\$MAINPID\nTimeoutSec=0\nRestartSec=2\nRestart=always\n\nEnvironment=\"HTTP_PROXY=http:\/\/192.168.1.77:5704\"\nEnvironment=\"HTTPS_PROXY=http:\/\/192.168.1.77:5704\"\nEnvironment=\"NO_PROXY=localhost,127.0.0.1,10.0.0.0\/8,172.16.0.0\/12,192.168.0.0\/16,.docker.internal\"\n\n# \u9650\u5236\nLimitNOFILE=infinity\nLimitNPROC=infinity\nLimitCORE=infinity\n\n# \u7981\u7528socket\u6fc0\u6d3b\nTasksMax=infinity\nDelegate=yes\nKillMode=process\n\n&#91;Install]\nWantedBy=multi-user.target\nEOF\n    mkdir -p \/etc\/docker\n    cat >\/etc\/docker\/daemon.json &lt;&lt;EOF\n{\n  \"log-driver\": \"json-file\",\n  \"log-opts\": {\n    \"max-size\": \"100m\",\n    \"max-file\": \"5\"\n  },\n  \"registry-mirrors\": &#91;\n    \"https:\/\/eme145et.mirror.aliyuncs.com\"\n  ],\n  \"insecure-registries\": &#91;\"dockerhub.gpst.net.cn\"],\n  \"data-root\": \"\/appdata\/var\/lib\/docker\"\n}\n\nEOF\n    systemctl daemon-reload\n    systemctl enable --now docker\n    if $(docker ps &amp;>\/dev\/null); then\n        echo \"docker is installed and running\"\n    else\n        echo \"docker is not installed\"\n        exit 1\n    fi\n}\n__aneeovtntd__() {\n    if $(docker --version &amp;>\/dev\/null); then\n        echo \"Docker is installed\"\n    else\n        echo \"Docker is not installed\"\n        if $(iptables --version &amp;>\/dev\/null); then\n            echo \"iptables is installed\"\n            __etioaictef__\n        else\n            echo \"iptables is not installed\"\n            exit 1\n        fi\n\n    fi\n}\n__aneeovtntd__\n\ncd  $alcbltwt\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>docker-20.10.24.tgz \uff08\u672c\u7ad9\u4e0b\u8f7d\u6e90\uff09 \u81ea\u52a8\u5316\u5b89\u88c5\u811a\u672crun.sh:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1136","post","type-post","status-publish","format-standard","hentry","category-dockerkubernetes"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1136"}],"version-history":[{"count":1,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1136\/revisions"}],"predecessor-version":[{"id":1138,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1136\/revisions\/1138"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}