{"id":64169,"date":"2025-05-03T11:12:07","date_gmt":"2025-05-03T03:12:07","guid":{"rendered":"https:\/\/fwq.ai\/blog\/64169\/"},"modified":"2025-05-03T11:12:07","modified_gmt":"2025-05-03T03:12:07","slug":"docker%e5%ae%b9%e5%99%a8%e8%ae%bf%e9%97%ae%e7%ac%ac%e4%b8%89%e6%96%b9%e5%9c%b0%e5%9d%80%e8%af%81%e4%b9%a6%e4%b8%8d%e4%b8%80%e8%87%b4%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/64169\/","title":{"rendered":"Docker\u5bb9\u5668\u8bbf\u95ee\u7b2c\u4e09\u65b9\u5730\u5740\u8bc1\u4e66\u4e0d\u4e00\u81f4\u600e\u4e48\u529e\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173053718299994.jpg\" class=\"aligncenter\" title=\"Docker\u5bb9\u5668\u8bbf\u95ee\u7b2c\u4e09\u65b9\u5730\u5740\u8bc1\u4e66\u4e0d\u4e00\u81f4\u600e\u4e48\u529e\uff1f\u63d2\u56fe\" alt=\"Docker\u5bb9\u5668\u8bbf\u95ee\u7b2c\u4e09\u65b9\u5730\u5740\u8bc1\u4e66\u4e0d\u4e00\u81f4\u600e\u4e48\u529e\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong> \u5bb9\u5668\u8bbf\u95ee\u4e09\u65b9\u5730\u5740\u65f6\u8bc1\u4e66\u4e0d\u4e00\u81f4<\/strong><\/p>\n<p>\u5728 docker \u5bb9\u5668\u4e2d\u4f7f\u7528 https \u534f\u8bae\u8bbf\u95ee\u4e09\u65b9\u5730\u5740\u65f6\uff0c\u5982\u679c\u83b7\u53d6\u5230\u7684\u8bc1\u4e66\u4e0e\u76ee\u6807\u5730\u5740\u4e0d\u5339\u914d\uff0c\u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u5bb9\u5668\u5185\u7684 tls \u73af\u5883\u8bbe\u7f6e\u4e0d\u6b63\u786e\u9020\u6210\u7684\u3002<\/p>\n<p>\u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u9700\u8981\u68c0\u67e5 docker \u5bb9\u5668\u4e2d\u7684\u4ee5\u4e0b\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<pre>ssl_cert_file\nssl_cert_dir\nssl_cipher_list\nssl_protocols<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\u7528\u4e8e\u914d\u7f6e tls \u8fde\u63a5\uff0c\u786e\u4fdd\u5c06\u6b63\u786e\u7684\u8bc1\u4e66\u548c\u534f\u8bae\u7528\u4e8e\u4e0e\u76ee\u6807\u5730\u5740\u7684\u901a\u4fe1\u3002<\/p>\n<p>\u5728\u5bb9\u5668\u542f\u52a8\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u8981\u4f7f\u7528\u7279\u5b9a\u8bc1\u4e66\u6587\u4ef6\u548c\u52a0\u5bc6\u5957\u4ef6\u5217\u8868\uff1a<\/p>\n<pre>docker run -e SSL_CERT_FILE=\/path\/to\/cert.pem -e SSL_CIPHER_LIST=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ...<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u8bbe\u7f6e\u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u786e\u4fdd docker \u5bb9\u5668\u4e2d\u7684 tls \u73af\u5883\u4e0e\u76ee\u6807\u5730\u5740\u5339\u914d\uff0c\u4ece\u800c\u83b7\u53d6\u5230\u6b63\u786e\u7684\u8bc1\u4e66\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDocker\u5bb9\u5668\u8bbf\u95ee\u7b2c\u4e09\u65b9\u5730\u5740\u8bc1\u4e66\u4e0d\u4e00\u81f4\u600e\u4e48\u529e\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8IDCBABY\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bb9\u5668\u8bbf\u95ee\u4e09\u65b9\u5730\u5740\u65f6\u8bc1\u4e66\u4e0d\u4e00\u81f4 \u5728 docker \u5bb9\u5668\u4e2d\u4f7f\u7528 https \u534f\u8bae\u8bbf\u95ee\u4e09\u65b9\u5730\u5740\u65f6\uff0c\u5982\u679c\u83b7\u53d6\u5230\u7684\u8bc1\u4e66\u4e0e\u76ee\u6807\u5730\u5740\u4e0d\u5339\u914d\uff0c\u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u5bb9\u5668\u5185\u7684 tls \u73af\u5883\u8bbe\u7f6e\u4e0d\u6b63\u786e\u9020\u6210\u7684\u3002 \u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u9700\u8981\u68c0\u67e5 docker \u5bb9\u5668\u4e2d\u7684\u4ee5\u4e0b\u73af\u5883\u53d8\u91cf\uff1a ssl_cert_file ssl_cert_dir ssl_cipher_list ssl_protocols \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\u7528\u4e8e\u914d\u7f6e tls \u8fde\u63a5\uff0c\u786e\u4fdd\u5c06\u6b63\u786e\u7684\u8bc1\u4e66\u548c\u534f\u8bae\u7528\u4e8e\u4e0e\u76ee\u6807\u5730\u5740\u7684\u901a\u4fe1\u3002 \u5728\u5bb9\u5668\u542f\u52a8\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u8981\u4f7f\u7528\u7279\u5b9a\u8bc1\u4e66\u6587\u4ef6\u548c\u52a0\u5bc6\u5957\u4ef6\u5217\u8868\uff1a docker run -e SSL_CERT_FILE=\/path\/to\/cert.pem -e SSL_CIPHER_LIST=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 &#8230; \u767b\u5f55\u540e\u590d\u5236 \u901a\u8fc7\u8bbe\u7f6e\u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u786e\u4fdd docker \u5bb9\u5668\u4e2d\u7684 tls \u73af\u5883\u4e0e\u76ee\u6807\u5730\u5740\u5339\u914d\uff0c\u4ece\u800c\u83b7\u53d6\u5230\u6b63\u786e\u7684\u8bc1\u4e66\u3002 \u4ee5\u4e0a\u5c31\u662fDocker\u5bb9\u5668\u8bbf\u95ee\u7b2c\u4e09\u65b9\u5730\u5740\u8bc1\u4e66\u4e0d\u4e00\u81f4\u600e\u4e48\u529e\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8IDCBABY\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-64169","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/64169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=64169"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/64169\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=64169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=64169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=64169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}