﻿{"id":1441,"date":"2024-01-23T08:45:40","date_gmt":"2024-01-23T00:45:40","guid":{"rendered":"https:\/\/www.tansoo.cn\/?p=1441"},"modified":"2024-01-23T08:45:40","modified_gmt":"2024-01-23T00:45:40","slug":"phpbb-75","status":"publish","type":"post","link":"https:\/\/www.tansoo.cn\/?p=1441","title":{"rendered":"Docker \u5347\u7ea7\u540e\uff0c\u57fa\u4e8e Home Assistant Supervisor \u7684\u5b89\u88c5\u5931\u8d25"},"content":{"rendered":"<p>\u57282024\u5e741\u670819\u65e5\uff0c\u56e0docker\u4ece\u7248\u672c 24 \u5347\u7ea7\u523025\u540e\uff0c\u53d1\u73b0 HA \u65e0\u6cd5\u542f\u52a8\u6240\u6709\u670d\u52a1\u3002\u53ef\u80fd\u662fSupervisor  5\u548c Docker \u7248\u672c 25\u4e4b\u95f4\u4f3c\u4e4e\u5b58\u5728\u517c\u5bb9\u6027\u95ee\u9898\u3002docker \u5347\u7ea7\u540e\uff0cSupervisor \u65e0\u6cd5\u542f\u52a8\u3002\u7ecf\u67e5\u95ee\u9898\u51fa\u5728 Docker \u4e0a\uff0c\u4fee\u590d\u7a0b\u5e8f\u5c06\u4e0e Docker 25.0.1 \u5411\u540e\u79fb\u690d\u548c Docker 26.0.0 \u4e2d\u63a8\u9001\u3002<br \/>\n\u5728\u89e3\u51b3\u6b64\u95ee\u9898\u4e4b\u524d\uff0c\u89e3\u51b3\u65b9\u6cd5\u662f\u5c06 docker \u964d\u7ea7\u56de\u7248\u672c 24\uff0c\u5e76\u9632\u6b62\u5b83\u4eec\u518d\u6b21\u5347\u7ea7\uff0c\u7136\u540e\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u3002<br \/>\n\u4ee5\u4e0b\u662f\u964d\u7ea7\u6b65\u9aa4\u7684\u793a\u4f8b\u3002<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> apt <span style=\"color: #c20cb9; font-weight: bold;\">install<\/span> \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce=<span style=\"color: #000000;\">5<\/span>:24.0.7-<span style=\"color: #000000;\">1<\/span>~debian.12~bookworm \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-cli=<span style=\"color: #000000;\">5<\/span>:24.0.7-<span style=\"color: #000000;\">1<\/span>~debian.12~bookworm \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-buildx-plugin=0.11.2-<span style=\"color: #000000;\">1<\/span>~debian.12~bookworm \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-compose-plugin=2.21.0-<span style=\"color: #000000;\">1<\/span>~debian.12~bookworm \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-rootless-extras=<span style=\"color: #000000;\">5<\/span>:24.0.7-<span style=\"color: #000000;\">1<\/span>~debian.12~bookworm<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">apt-mark<\/span> hold \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-cli \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-buildx-plugin \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-compose-plugin \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-rootless-extras<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> reboot<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>\u60a8\u53ef\u4ee5\u5728 apt \u5386\u53f2\u8bb0\u5f55\u65e5\u5fd7\u4e2d\u68c0\u67e5\u8981\u964d\u7ea7\u5230\u7684\u7279\u5b9a docker \u7248\u672c\u3002<\/p>\n<p>cat \/var\/log\/apt\/history.log<\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u4ee5\u66f4\u6613\u8bfb\u7684\u683c\u5f0f\u5217\u51fa apt history \u65e5\u5fd7\u6587\u4ef6\u4e2d\u5df2\u5347\u7ea7\u7684 docker \u5305\u96c6\u3002<\/p>\n<p>grep -e &#8216;^Upgrade:.*docker-ce.*25.0.0&#8217; \/var\/log\/apt\/history.log | sed -e &#8216;s\/Upgrade:\/\/&#8217; -e &#8216;s\/),\/)\\n\/g&#8217; | sort<\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u5305\u5b58\u50a8\u5e93\u4e2d\u53ef\u7528\u7684 docker \u7248\u672c\uff1a<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> apt update<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">&nbsp;<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #c20cb9; font-weight: bold;\">apt-cache<\/span> madison \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-cli \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-buildx-plugin \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-compose-plugin \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-rootless-extras<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p>\u95ee\u9898\u89e3\u51b3\u540e\uff0c\u5927\u6982\u5f53 docker 25.0.1 \u6216 26.0.0 \u53d1\u5e03\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664 docker \u5305\u7248\u672c\u4fdd\u7559\uff0c<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"bash\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">apt-mark<\/span> unhold \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-cli \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-buildx-plugin \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-compose-plugin \\<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">docker-ce-rootless-extras<\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p><small>\u539f\u6587\u4f5c\u8005: BG6RSH | <a href=\"https:\/\/bbs.tansoo.cn\/viewtopic.php?t=75\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u539f\u5e16<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57282024\u5e741\u670819\u65e5\uff0c\u56e0docker\u4ece\u7248\u672c 24 \u5347\u7ea7\u523025\u540e\uff0c\u53d1\u73b0 HA \u65e0 &hellip; <a href=\"https:\/\/www.tansoo.cn\/?p=1441\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-1441","post","type-post","status-publish","format-standard","hentry","category-105"],"_links":{"self":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1441"}],"version-history":[{"count":0,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1441\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}