{"id":35116,"date":"2023-11-19T21:11:48","date_gmt":"2022-11-13T14:15:46","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/"},"modified":"2024-05-04T09:53:19","modified_gmt":"2024-05-04T01:53:19","slug":"wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/","title":{"rendered":"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4"},"content":{"rendered":"<h1>\u53ea\u9700\u8981\u4e00\u79cd\u4e2d\u6587\u9009\u9879\uff1a\u6309\u7167\u6b64\u9875\u9762\u4e0a\u7684\u6b65\u9aa4\u53ef\u4ee5\u505a\u4ec0\u4e48\u3002<\/h1>\n<div>\u53ef\u4ee5\u4f7f\u7528WSL2\uff08\u542f\u7528\u4e86systemd\uff09\u3002<br \/>\n\u53ef\u4ee5\u5b89\u88c5docker-cli\u3002<br \/>\n\u53ef\u4ee5\u8fd0\u884c\u5bb9\u5668\u3002<\/div>\n<h1>\u8ba9\u6211\u4eec\u7acb\u5373\u8bd5\u4e00\u8bd5<\/h1>\n<h2>\u5b89\u88c5WSL2<\/h2>\n<div>\n<p>\u9700\u8981\u7b26\u5408\u4ee5\u4e0b\u6761\u4ef6\uff1a<\/p>\n<p>1. \u4f7f\u7528Windows10\u6216\u8005Windows11\uff0822H2\u53ca\u4ee5\u4e0a\u7248\u672c\uff0c\u5e76\u5df2\u5e94\u7528\u6700\u65b0\u7684\u66f4\u65b0\uff09\u3002<br \/>\n2. \u6ca1\u6709\u7ec4\u7ec7\u5185\u90e8\u4ee3\u7406\u670d\u52a1\u5668\u7684\u8bbf\u95ee\u9650\u5236\uff08\u5168\u516c\u5f00\u7248\u7684\u6b65\u9aa4\u4e0d\u5305\u62ec\u5728\u5185\uff09\u3002<br \/>\n3. \u865a\u62df\u5316\u529f\u80fd\u5df2\u542f\u7528\uff08\u53ef\u4ee5\u901a\u8fc7\u4efb\u52a1\u7ba1\u7406\u5668\u786e\u8ba4\uff09\u3002<\/p>\n<\/div>\n<p>\u5982\u679c\u300c\u865a\u62df\u5316\u300d\u6ca1\u6709\u542f\u7528\uff0c\u53ef\u4ee5\u5728UEFI\u8bbe\u7f6e\u4e2d\u542f\u7528\u300cVT-x\u300d\u6216\u300cIntel\u865a\u62df\u5316\u6280\u672f\u300d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d210b37434c4406c2146f\/6-0.png\" alt=\"image.png\" \/><\/div>\n<h3>\u542f\u7528WSL2<\/h3>\n<p>\u5982\u679cWSL2\u5df2\u7ecf\u542f\u7528\uff0c\u5219\u53ef\u7701\u7565\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># \u307e\u3060Ubuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3002<\/span>\r\n<span class=\"n\">wsl<\/span> <span class=\"nt\">--install<\/span> <span class=\"nt\">--no-distribution<\/span>\r\n<span class=\"n\">wsl<\/span> <span class=\"nt\">--update<\/span>\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5WSL2(Ubuntu 22.04)\u3002<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\">#  Microsoft Store \u3092\u4f7f\u7528\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3 \u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/span>\r\n<span class=\"n\">wsl<\/span> <span class=\"nt\">--install<\/span> <span class=\"nt\">--distribution<\/span> <span class=\"nx\">Ubuntu-22.04<\/span> <span class=\"nt\">--web-download<\/span>\r\n<span class=\"n\">wsl<\/span> <span class=\"nt\">--set-default<\/span> <span class=\"nx\">Ubuntu-22.04<\/span>\r\n<\/code><\/pre>\n<h2>\u4e0eDocker\u5b89\u88c5\u65e0\u5173\u7684\u51c6\u5907\u5de5\u4f5c y\u00ec)).<\/h2>\n<h3>\u542f\u7528(\u4efb\u610f)systemd<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\"># (\u4efb\u610f)systemd\u3092\u6709\u52b9\u5316\u3059\u308b<\/span>\r\n<span class=\"nb\">echo<\/span> <span class=\"nt\">-e<\/span> <span class=\"s1\">'[boot]\\nsystemd=true'<\/span> | <span class=\"nb\">sudo tee<\/span> \/etc\/wsl.conf\r\n<\/code><\/pre>\n<div>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u786e\u8ba4 \/etc\/wsl.conf \u7684\u5185\u5bb9\u3002<\/div>\n<pre class=\"post-pre\"><code><span class=\"nb\">cat<\/span> \/etc\/wsl.conf\r\n<\/code><\/pre>\n<p>\u529b\u7684\u8bbe\u5b9a\u5982\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>[boot]\r\nsystemd=true\r\n<\/code><\/pre>\n<div>\u6700\u540e\uff0c\u522b\u5fd8\u4e86\u91cd\u65b0\u542f\u52a8WSL\u3002\u91cd\u65b0\u542f\u52a8\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5pid\u3002<\/div>\n<pre class=\"post-pre\"><code>ps <span class=\"nt\">-ae<\/span> | <span class=\"nb\">grep <\/span>systemd\r\n<\/code><\/pre>\n<p>\u60f3\u5b9a\u51fa\u529b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002systemd\u306epid\u304c1\u306b\u306a\u3063\u3066\u3044\u308b<\/p>\n<pre class=\"post-pre\"><code>      1 ?        00:00:00 systemd\r\n      2 ?        00:00:00 init-systemd(Ub\r\n     40 ?        00:00:00 systemd-journal\r\n     63 ?        00:00:00 systemd-udevd\r\n    123 ?        00:00:00 systemd-resolve\r\n    172 ?        00:00:00 systemd-logind\r\n    463 ?        00:00:00 systemd\r\n<\/code><\/pre>\n<h3>(\u4efb\u610f)Ubuntu\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u6e08\u307e\u305b\u3066\u304a\u304f<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\"># (\u4efb\u610f)\u4e8b\u524d\u6e96\u5099\u3068\u3057\u3066\u3001\u95a2\u4fc2\u306a\u3044\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306f\u6e08\u307e\u305b\u3066\u304a\u304f<\/span>\r\n<span class=\"nb\">sudo <\/span>apt-get update\r\n<span class=\"nb\">sudo <\/span>apt-get upgrade <span class=\"nt\">-y<\/span>\r\n<\/code><\/pre>\n<h2>Docker\u5b89\u88c5\u6b65\u9aa4<\/h2>\n<h3>\u9884\u5148\u4e0b\u8f7d\u5fc5\u8981\u7684\u8f6f\u4ef6<\/h3>\n<div>\u5982\u679c\u7ec4\u7ec7\u5185\u5b58\u5728\u4ee3\u7406\u8bbf\u95ee\u9650\u5236\uff0c\u9700\u8981\u8bbe\u7f6ehttp_proxy\u73af\u5883\u53d8\u91cf\u3002<br \/>\n\u82e5\u73af\u5883\u53d8\u91cf\u4e0d\u5b58\u5728\uff0c\u5219\u65e0\u6cd5\u8fde\u63a5apt\u4ed3\u5e93\u3002<\/div>\n<pre class=\"post-pre\"><code><span class=\"c\"># \u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u4e8b\u524d\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span>\r\n<span class=\"nb\">sudo <\/span>apt-get update\r\n<span class=\"nb\">sudo <\/span>apt-get <span class=\"nb\">install<\/span> <span class=\"nt\">-y<\/span> ca-certificates curl gnupg\r\n<\/code><\/pre>\n<h3>\u6dfb\u52a0\u7528\u4e8eDocker\u7684apt\u8f6f\u4ef6\u6e90\u4ed3\u5e93\u3002<\/h3>\n<div>\u4ee5\u4e0b\u6240\u793a\u624b\u7eed\uff0c\u5728Ubuntu20.04\u4e0d\u8d77\u4f5c\u7528\u3002\u9700\u8981Ubuntu22.04\u6216\u66f4\u9ad8\u7248\u672c\u3002<\/div>\n<pre class=\"post-pre\"><code><span class=\"c\"># docker\u7528\u306eapt\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b<\/span>\r\n<span class=\"nb\">sudo <\/span>curl <span class=\"nt\">-fsSL<\/span> https:\/\/download.docker.com\/linux\/ubuntu\/gpg <span class=\"nt\">-o<\/span> \/etc\/apt\/keyrings\/docker.asc\r\n<span class=\"nb\">echo<\/span> <span class=\"s1\">'deb [arch=amd64 signed-by=\/etc\/apt\/keyrings\/docker.asc] https:\/\/download.docker.com\/linux\/ubuntu jammy stable'<\/span> | <span class=\"nb\">sudo tee<\/span> \/etc\/apt\/sources.list.d\/docker.list <span class=\"o\">&gt;<\/span> \/dev\/null\r\n<span class=\"nb\">sudo <\/span>apt-get update\r\n<\/code><\/pre>\n<div>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067config\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n<\/div>\n<pre class=\"post-pre\"><code><span class=\"nb\">cat<\/span> \/etc\/apt\/keyrings\/docker.asc\r\n<span class=\"nb\">cat<\/span> \/etc\/apt\/sources.list.d\/docker.list \r\n<\/code><\/pre>\n<p>\u8f93\u51fa\u529b\u7684\u60f3\u6cd5\u5982\u4e0b<\/p>\n<pre class=\"post-pre\"><code>-----BEGIN PGP PUBLIC KEY BLOCK-----\r\n\r\nmQINBFit2ioBEADhWpZ8\/wvZ6hUTiXOwQHXMAlaFHcPH9hAtr4F1y2+OYdbtMuth\r\n(\u4e2d\u7565)\r\nYT90qFF93M3v01BbxP+EIY2\/9tiIPbrd\r\n=0YYh\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>deb [arch=amd64 signed-by=\/etc\/apt\/keyrings\/docker.asc] https:\/\/download.docker.com\/linux\/ubuntu jammy stable\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5Docker<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\"># docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span>\r\n<span class=\"nb\">sudo <\/span>apt-get <span class=\"nb\">install<\/span> <span class=\"nt\">-y<\/span> docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\r\n<\/code><\/pre>\n<div>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Docker\u7684\u8fd0\u884c\u72b6\u6001<\/div>\n<pre class=\"post-pre\"><code>systemctl status docker\r\n<\/code><\/pre>\n<p>\u60f3\u8981\u8bbe\u5b9a\u8f93\u51fa\u7684\u5982\u4e0b<\/p>\n<pre class=\"post-pre\"><code>\u25cf docker.service - Docker Application Container Engine\r\n     Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Thu 2023-10-19 22:53:11 JST; 30s ago\r\nTriggeredBy: \u25cf docker.socket\r\n       Docs: https:\/\/docs.docker.com\r\n   Main PID: 11405 (dockerd)\r\n      Tasks: 17\r\n     Memory: 33.5M\r\n     CGroup: \/system.slice\/docker.service\r\n             \u2514\u250011405 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock\r\n(\u4ee5\u4e0b\u7701\u7565)\r\n<\/code><\/pre>\n<h2>\u8ba9\u6211\u4eec\u8fd0\u884cDocker<\/h2>\n<h3>\u5c1d\u8bd5\u8fd0\u884c\u201c\u4f60\u597d\uff0c\u4e16\u754c\u201d\u3002<\/h3>\n<p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6267\u884cDocker\u5bb9\u5668\uff1a<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">sudo <\/span>docker pull docker.io\/library\/hello-world\r\n<span class=\"nb\">sudo <\/span>docker run docker.io\/library\/hello-world\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662f\u6211\u60f3\u8981\u786e\u5b9a\u7684\u8f93\u51fa\u91cf\u3002<\/p>\n<pre class=\"post-pre\"><code>Hello from Docker!\r\nThis message shows that your installation appears to be working correctly.\r\n\r\nTo generate this message, Docker took the following steps:\r\n 1. The Docker client contacted the Docker daemon.\r\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\r\n    (amd64)\r\n 3. The Docker daemon created a new container from that image which runs the\r\n    executable that produces the output you are currently reading.\r\n 4. The Docker daemon streamed that output to the Docker client, which sent it\r\n    to your terminal.\r\n\r\nTo try something more ambitious, you can run an Ubuntu container with:\r\n $ docker run -it ubuntu bash\r\n\r\nShare images, automate workflows, and more with a free Docker ID:\r\n https:\/\/hub.docker.com\/\r\n\r\nFor more examples and ideas, visit:\r\n https:\/\/docs.docker.com\/get-started\/\r\n<\/code><\/pre>\n<div>\u5982\u679c\u7ec4\u7ec7\u5185\u6709\u4f7f\u7528\u4ee3\u7406\u9650\u5236\u8bbf\u95ee\uff0c\u5219\u9700\u8981\u5bf9systemd\u548cdocker\u8fdb\u884c\u5355\u72ec\u8bbe\u7f6e\u3002<br \/>\n\u5982\u679c\u672a\u8fdb\u884c\u8bbe\u7f6e\u66f4\u6539\uff0c\u5219\u65e0\u6cd5\u8fde\u63a5\u5230docker.io\uff08dockerhub\uff09\uff0c\u56e0\u6b64\u65e0\u6cd5\u8fdb\u884cdocker pull\u3002<\/div>\n<h2>\u8bf7\u63d0\u4f9b\u76f8\u5173\u53c2\u8003\u8d44\u6599\u3002<\/h2>\n<h3>\u5fae\u8f6f\u5b98\u65b9\u6307\u5357\uff1aWSL2\u5b89\u88c5\u6b65\u9aa4\u3002<\/h3>\n<p>&nbsp;<\/p>\n<h3>Docker\u5b98\u65b9\u6587\u6863\uff1aDocker\u7684\u5b89\u88c5\u65b9\u6cd5<\/h3>\n<p>&nbsp;<\/p>\n<h3>gpg \u53ef\u4f7f\u7528 ASCII Armor \u683c\u5f0f\u3002<\/h3>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ea\u9700\u8981\u4e00\u79cd\u4e2d\u6587\u9009\u9879\uff1a\u6309\u7167\u6b64\u9875\u9762\u4e0a\u7684\u6b65\u9aa4\u53ef\u4ee5\u505a\u4ec0\u4e48\u3002 \u53ef\u4ee5\u4f7f\u7528WSL2\uff08\u542f\u7528\u4e86systemd\uff09\u3002 \u53ef\u4ee5\u5b89\u88c5doc [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-35116","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-\u8fd9\u662fubuntu22-04-systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4\" \/>\n<meta property=\"og:description\" content=\"\u53ea\u9700\u8981\u4e00\u79cd\u4e2d\u6587\u9009\u9879\uff1a\u6309\u7167\u6b64\u9875\u9762\u4e0a\u7684\u6b65\u9aa4\u53ef\u4ee5\u505a\u4ec0\u4e48\u3002 \u53ef\u4ee5\u4f7f\u7528WSL2\uff08\u542f\u7528\u4e86systemd\uff09\u3002 \u53ef\u4ee5\u5b89\u88c5doc [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-\u8fd9\u662fubuntu22-04-systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-13T14:15:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T01:53:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d210b37434c4406c2146f\/6-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/\",\"name\":\"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-13T14:15:46+00:00\",\"dateModified\":\"2024-05-04T01:53:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-\u8fd9\u662fubuntu22-04-systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4","og_description":"\u53ea\u9700\u8981\u4e00\u79cd\u4e2d\u6587\u9009\u9879\uff1a\u6309\u7167\u6b64\u9875\u9762\u4e0a\u7684\u6b65\u9aa4\u53ef\u4ee5\u505a\u4ec0\u4e48\u3002 \u53ef\u4ee5\u4f7f\u7528WSL2\uff08\u542f\u7528\u4e86systemd\uff09\u3002 \u53ef\u4ee5\u5b89\u88c5doc [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-\u8fd9\u662fubuntu22-04-systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-13T14:15:46+00:00","article_modified_time":"2024-05-04T01:53:19+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d210b37434c4406c2146f\/6-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/","name":"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-13T14:15:46+00:00","dateModified":"2024-05-04T01:53:19+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"WSL2: \u8fd9\u662fUbuntu22.04\/systemd\u542f\u7528\u4e0b\u786e\u5b9a\u7248\u7684docker-cli\u5b89\u88c5\u6b65\u9aa4"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/wsl2-%e8%bf%99%e6%98%afubuntu22-04-systemd%e5%90%af%e7%94%a8%e4%b8%8b%e7%a1%ae%e5%ae%9a%e7%89%88%e7%9a%84docker-cli%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=35116"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35116\/revisions"}],"predecessor-version":[{"id":97618,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/35116\/revisions\/97618"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=35116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=35116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=35116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}