{"id":7307,"date":"2023-03-23T23:51:40","date_gmt":"2023-03-23T15:51:40","guid":{"rendered":"http:\/\/www.5x44.cn\/?p=7307"},"modified":"2023-03-23T23:51:40","modified_gmt":"2023-03-23T15:51:40","slug":"systemd%e7%94%a8%e6%88%b7%e6%a8%a1%e5%bc%8fdocker-rootless-mode","status":"publish","type":"post","link":"https:\/\/www.5x44.cn\/?p=7307","title":{"rendered":"systemd\u7528\u6237\u6a21\u5f0f[docker rootless mode]"},"content":{"rendered":"\n<p>\u6267\u884csystemctl &#8211;user status \u63d0\u5347\uff1a<br>Failed to get D-Bus connection: No such file or directory<br>\u591a\u6570\u4ee3\u8868\u6ca1\u6709\u542f\u52a8systemd\u7528\u6237\u6a21\u5f0f\uff0c\u8981\u5b89\u88c5\u201clibpam-systemd\u201d\u548c\u201csystemd-user-session\u201d<\/p>\n\n\n\n<p>journalctl -xe &#8211;unit=systemd-user-sessions\u67e5\u770bsystemd-user-sessions\u542f\u52a8\u7684\u65e5\u5fd7<\/p>\n\n\n\n<p>#################################################<\/p>\n\n\n\n<p>\u7ecf\u8fc7\u6211\u4e0d\u61c8\u52aa\u529b\uff0c\u5728chatGPT\u90a3\u91cc\u5f97\u5230\u7684\u6d88\u606f\u662f\uff1a<\/p>\n\n\n\n<p>systemd-user-sessions.service\u670d\u52a1\u8fd0\u884c\u7684\u524d\u63d0\u6761\u4ef6\u4e3b\u8981\u5305\u62ec\uff1a 1. \u5fc5\u987b\u5b89\u88c5\u5e76\u542f\u7528 Systemd \u7cfb\u7edf\u670d\u52a1\u3002 2. \u5fc5\u987b\u5728\u56fe\u5f62\u754c\u9762\u4e0b\u4ee5\u666e\u901a\u7528\u6237\u8eab\u4efd\u767b\u5f55\u3002 3. \u8981\u4f7f\u7528\u8be5\u670d\u52a1\uff0c\u5fc5\u987b\u81f3\u5c11\u901a\u8fc7\u4e00\u4e2a\u4ea4\u4e92\u5f0f shell \u8fdb\u7a0b\u4e0e X \u670d\u52a1\u5668\u8fdb\u884c\u8fde\u63a5\u3002\u56e0\u6b64\uff0c\u865a\u62df\u673a\u7b49\u975e\u56fe\u5f62\u5316\u73af\u5883\u4e0b\u65e0\u6cd5\u4f7f\u7528\u8be5\u670d\u52a1\u3002 4. \u684c\u9762\u73af\u5883\u4e0d\u662f\u5f3a\u5236\u6027\u8981\u6c42\uff0c\u4f46\u9700\u8981\u4e00\u4e9b\u684c\u9762\u7ec4\u4ef6\u548c\u5e93\u652f\u6301\u624d\u80fd\u591f\u63d0\u4f9b\u6240\u6709\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u4e5f\u5c31\u662f\u8bf4\u6211\u5728docker\u6587\u6863\u90a3\u770b\u4e86\u534a\u5929rootless mode\uff0c\u8fd9\u529f\u80fd\u4e5f\u53ea\u80fd\u7528\u4e8e\u6709\u684c\u9762\u7ec4\u4ef6\u7684\u73af\u5883\u4e0b\uff0c\u865a\u62df\u673a\uff0c\u6216\u65e0\u684c\u9762\u7ec4\u4ef6\u7684linux\u7cfb\u7edf\u662f\u65e0\u6cd5\u8fd0\u884c\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6267\u884csystemctl &#8211;user status \u63d0\u5347\uff1aFailed to get D-Bus connection: No such file o&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.5x44.cn\/?p=7307\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,22],"tags":[],"class_list":["post-7307","post","type-post","status-publish","format-standard","hentry","category-it","category-22"],"_links":{"self":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/7307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7307"}],"version-history":[{"count":3,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/7307\/revisions"}],"predecessor-version":[{"id":7314,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=\/wp\/v2\/posts\/7307\/revisions\/7314"}],"wp:attachment":[{"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.5x44.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}