{"id":8807,"date":"2024-09-14T10:10:41","date_gmt":"2024-09-14T02:10:41","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=8807"},"modified":"2024-09-14T10:10:41","modified_gmt":"2024-09-14T02:10:41","slug":"%e4%b8%80%e6%96%87%e8%af%bb%e6%87%82docker","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=8807","title":{"rendered":"\u4e00\u6587\u8bfb\u61c2Docker"},"content":{"rendered":"<section style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;text-align: left\" data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\">\n<blockquote style=\"border-top: none;border-right: none;border-bottom: none;font-size: 0.9em;overflow: auto;border-top-right-radius: 6px;border-bottom-right-radius: 6px;padding: 10px 10px 10px 20px;margin-bottom: 20px;margin-top: 20px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;color: black;line-height: 26px\">\u4e00\u7bc7\u6587\u7ae0\uff0c\u8ba9\u4f60\u8bfb\u61c2\u4ec0\u4e48\u662fDocker\uff1f<\/p>\n<\/blockquote>\n<h1 style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px;margin-left: 25px;margin-top: -12px;padding-top: -21px;margin-bottom: -8px;padding-bottom: 5px\">\u4e3a\u4ec0\u4e48\u8981Docker<\/span><\/h1>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5176\u5b9e\u5728\u7b14\u8005\u770b\u6765\uff0c<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">docker<\/code>\u4e3b\u8981\u662f\u4e3a\u201c\u61d2\u4eba\u201d\u63d0\u4f9b\u4e86\u65b9\u4fbf\u3002\u5982\u6211\u4eec\u5728\u8fd0\u884c\u67d0\u4e9b\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u7ed9\u5176\u90e8\u7f72\u76f8\u5173\u7684\u73af\u5883\uff0c\u5982\u8fd0\u884cHA\u65f6\uff0c\u9700\u8981\u89e3\u51b3\u76f8\u5173Python\u73af\u5883\u3002\u8fd0\u884c\u90fdweb\u7ad9\u70b9\u65f6\uff0c\u9700\u8981\u90e8\u7f72<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">php<\/code> <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">mysql<\/code>\u7b49\u73af\u5883\u3002\u800c\u901a\u8fc7Dokcer\u6211\u4eec\u65e0\u9700\u90e8\u7f72\u5404\u7c7b\u590d\u6742\u7684\u73af\u5883\uff0c\u53ea\u9700\u4e00\u952e\u542f\u52a8\u3002<\/p>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9507\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012458344.png\" width=\"1080\" height=\"608\" alt=\"20240916012458344\" title=\"20240916012458344\" \/><\/figure>\n<h1 style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px;margin-left: 25px;margin-top: -12px;padding-top: -21px;margin-bottom: -8px;padding-bottom: 5px\">\u4ec0\u4e48\u662fDocker<\/span><\/h1>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">Docker<\/code> \u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u6253\u5305\u4ed6\u4eec\u7684\u5e94\u7528\u4ee5\u53ca\u4f9d\u8d56\u5305\u5230\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u53ef\u79fb\u690d\u7684\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u53d1\u5e03\u5230\u4efb\u4f55\u6d41\u884c\u7684 Linux \u673a\u5668\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u865a\u62df\u5316\u3002<\/p>\n<h1 style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px;margin-left: 25px;margin-top: -12px;padding-top: -21px;margin-bottom: -8px;padding-bottom: 5px\">\u5b89\u88c5Docker<\/span><\/h1>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u6211\u4eec\u4ee5kali\u4e3a\u4f8b\uff0c\u7b80\u5355\u8bf4\u8bf4\u57fa\u4e8edebian\u7cfb\u7edf\u4e0b\uff0cdocker\u7684\u5b89\u88c5\u3002\u53ea\u9700\u4e0b\u9762\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\">apt-get\u00a0<strong>install<\/strong>\u00a0docker.io\n<\/code><\/pre>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9508\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012500459.png\" width=\"1080\" height=\"691\" alt=\"20240916012500459\" title=\"20240916012500459\" \/><\/figure>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u542f\u52a8 Docker \u670d\u52a1\uff1a<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\">systemctl\u00a0start\u00a0docker\n<span style=\"color: #5c6370;font-style: italic;line-height: 26px\">#\u6216\u8005<\/span>\nservice\u00a0docker\u00a0start\n<\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong>\u5f00\u673a\u81ea\u542f<\/strong><\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\">systemctl\u00a0<span style=\"color: #e6c07b;line-height: 26px\">enable<\/span>\u00a0docker\n<\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5728\u8bbe\u7f6e\u6210\u81ea\u542f\u52a8\u65f6\u7cfb\u7edf\u4f1a\u663e\u793a\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9509\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012503499.png\" width=\"1080\" height=\"305\" alt=\"20240916012503499\" title=\"20240916012503499\" \/>\u6211\u4eec\u6267\u884c\u4e0a\u9762\u5185\u5bb9\u5373\u53ef\u3002<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\">\/usr\/lib\/systemd\/systemd-sysv-install\u00a0<span style=\"color: #e6c07b;line-height: 26px\">enable<\/span>\u00a0docker\n<\/code><\/pre>\n<h1 style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px;margin-left: 25px;margin-top: -12px;padding-top: -21px;margin-bottom: -8px;padding-bottom: 5px\">\u4ec0\u4e48\u662f\u955c\u50cf<\/span><\/h1>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u8bf4\u7b80\u5355\u70b9\uff0c\u5982\u6211\u4eec\u60f3\u5728Linux\u670d\u52a1\u5668\u4e2d\u8fd0\u884cwin11\u7cfb\u7edf\u3002\u6211\u4eec\u5c31\u9700\u8981\u62c9\u53d6\u548c\u7cfb\u7edf\u67b6\u6784\u4e00\u6837\u7684win11\u955c\u50cf\u3002\u6211\u4eec\u5e38\u7528<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">docker pull<\/code> \u547d\u4ee4\u6765\u62c9\u53d6\u955c\u50cf\u3002<\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8e\u67d0\u4e9b\u539f\u56e0\u3002\u62c9\u53d6\u955c\u50cf\u662f\u975e\u5e38\u6162\u3002\u5404\u79cd\u955c\u50cf\u52a0\u901f\u6e90\u90fd\u6251\u8857\u3002\u4e0b\u9762\u662f\u7b14\u8005\u627e\u5230\u53ef\u7528\u7684\u65b9\u6cd5\u3002\uff08\u968f\u65f6\u53ef\u80fd\u4f1a\u5931\u6548\uff09<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\">cat\u00a0&gt;\u00a0\/etc\/docker\/daemon.json\u00a0&lt;&lt;EOF\n{\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"log-driver\"<\/span>:\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"json-file\"<\/span>,\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"log-opts\"<\/span>:\u00a0{\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"max-size\"<\/span>:\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"20m\"<\/span>,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"max-file\"<\/span>:\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"3\"<\/span>\n\u00a0\u00a0\u00a0\u00a0},\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"ipv6\"<\/span>:\u00a0<span style=\"color: #56b6c2;line-height: 26px\">true<\/span>,\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"fixed-cidr-v6\"<\/span>:\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"fd00:dead:beef:c0::\/80\"<\/span>,\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"experimental\"<\/span>:<span style=\"color: #56b6c2;line-height: 26px\">true<\/span>,\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"ip6tables\"<\/span>:<span style=\"color: #56b6c2;line-height: 26px\">true<\/span>,\n\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"registry-mirrors\"<\/span>:\u00a0[\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"https:\/\/docker.m.daocloud.io\"<\/span>,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"https:\/\/dockerhub.icu\"<\/span>,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"https:\/\/docker.anyhub.us.kg\"<\/span>,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #9cff54;line-height: 26px\">\"https:\/\/docker.1panel.live\"<\/span>\n\u00a0\u00a0\u00a0\u00a0]\n}\nEOF\n<\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5199\u5165\u65b0\u7684\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u9700\u8981\u6211\u4eec\u91cd\u542f<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">docker<\/code><\/p>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\uff0c\u6211\u4eec\u8981\u62c9\u53d6HomeAssistant\u7684\u955c\u50cf\uff0c\u53ef\u4ee5\u6267\u884c\u4e0b\u9762\u547d\u4ee4\u3002<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\"><strong>docker\u00a0<\/strong>pull\u00a0homeassistant\/home-assistant:latest\n<\/code><\/pre>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4ee3\u7801\u4e2d<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">homeassistant\/home-assistant<\/code>\u5c31\u662f\u955c\u50cf\u540d\u79f0\u3002\u9ed8\u8ba4\u662f\u4ece Docker Hub \u516c\u5171\u955c\u50cf\u6e90\u4e0b\u8f7d\u3002<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">latest<\/code>\u662f\u955c\u50cf\u7684\u7248\u672c\uff0c\u9ed8\u8ba4\u4e3a\u6700\u65b0\u7248\u3002\u4e5f\u53ef\u6307\u5b9a\u5982<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">2023.1.1<\/code><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9510\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012505313.png\" width=\"1080\" height=\"691\" alt=\"20240916012505313\" title=\"20240916012505313\" \/><\/p>\n<h1 style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;font-size: 20px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><span style=\"font-size: 16px;margin-left: 25px;margin-top: -12px;padding-top: -21px;margin-bottom: -8px;padding-bottom: 5px\">\u521b\u5efa\u5bb9\u5668<\/span><\/h1>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u4ec0\u4e48\u662f\u5bb9\u5668\uff1f\u901a\u4fd7\u70b9\u8bb2\u5c31\u662f\u628a\u6bcf\u4e2a\u955c\u50cf\u653e\u5230<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">\u7bb1\u5b50<\/code>\u4e2d\u3002\u5f7c\u6b64\u4e92\u4e0d\u5f71\u54cd\u3002<\/p>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9511\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012508739.png\" width=\"1080\" height=\"373\" alt=\"20240916012508739\" title=\"20240916012508739\" \/><\/figure>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\u5982\u4e0a\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u547d\u4ee4\u521b\u5efa\u5bb9\u5668\u3002<\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\">docker\u00a0run\u00a0-d\u00a0--name=<span style=\"color: #9cff54;line-height: 26px\">\"hass\"<\/span>\u00a0-v\u00a0\/root\/hassistant:\/config\u00a0-p\u00a08123:8123\u00a0homeassistant\/home-assistant:latest\n<\/code><\/pre>\n<figure style=\"margin-top: 10px;margin-bottom: 10px;flex-direction: column;justify-content: center;align-items: center\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9512\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012510863.png\" width=\"1080\" height=\"691\" alt=\"20240916012510863\" title=\"20240916012510863\" \/><\/figure>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong>\u53c2\u6570\u8bf4\u660e\uff1a<\/strong><\/p>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px\" data-tool=\"mdnice\u7f16\u8f91\u5668\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">--name<\/code> :\u5bb9\u5668\u540d\u79f0\uff08\u81ea\u5b9a\u4e49\uff09<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">-v<\/code> : \u6302\u8f7d\u70b9\u4f4d\u7f6e\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8bbe\u7f6e\uff0c\u4f46\u8def\u5f84\u4e0d\u597d\u627e\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px\"><code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px\">-p<\/code> : \u5bb9\u5668\u5bf9\u5e94\u7684\u7aef\u53e3\uff0c\u4e0d\u8981\u548c\u4e3b\u673a\u7684\u7aef\u53e3\u51b2\u7a81\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><strong>\u5176\u4ed6\u5e38\u7528\u547d\u4ee4<\/strong><\/p>\n<pre style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px\" data-tool=\"mdnice\u7f16\u8f91\u5668\"><code style=\"padding: 16px;color: #abb2bf;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;padding-top: 15px;background: #282c34;border-radius: 5px\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px\">#\u542f\u52a8\u5bb9\u5668<\/span>\ndocker\u00a0start\u00a0hass\u00a0<span style=\"color: #5c6370;font-style: italic;line-height: 26px\">#hass\u4e3a\u5bb9\u5668\u540d\u79f0<\/span>\n<span style=\"color: #5c6370;font-style: italic;line-height: 26px\">#\u91cd\u542f<\/span>\ndocker\u00a0restart\u00a0hass\n<span style=\"color: #5c6370;font-style: italic;line-height: 26px\">#\u5f00\u673a\u81ea\u542f<\/span>\ndocker\u00a0update\u00a0--restart=always\u00a0hass\n<\/code><\/pre>\n<\/section>\n<p style=\"text-align: center\">\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u7bc7\u6587\u7ae0\uff0c\u8ba9\u4f60\u8bfb\u61c2\u4ec0\u4e48\u662fDocker\uff1f \u4e3a\u4ec0\u4e48\u8981Docker \u5176\u5b9e\u5728\u7b14\u8005\u770b\u6765\uff0cdocker\u4e3b\u8981\u662f\u4e3a\u201c\u61d2\u4eba\u201d\u63d0\u4f9b\u4e86\u65b9\u4fbf\u3002\u5982\u6211\u4eec\u5728\u8fd0\u884c\u67d0\u4e9b\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u7ed9\u5176\u90e8\u7f72\u76f8\u5173\u7684\u73af\u5883\uff0c\u5982\u8fd0\u884cHA\u65f6\uff0c\u9700\u8981\u89e3\u51b3\u76f8\u5173Python\u73af\u5883\u3002\u8fd0\u884c\u90fdweb\u7ad9\u70b9\u65f6\uff0c\u9700\u8981\u90e8\u7f72p&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[159],"topic":[],"class_list":["post-8807","post","type-post","status-publish","format-standard","hentry","category-tools-soft","tag-docker"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/8807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8807"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/8807\/revisions"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8807"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8807"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=8807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}