{"id":43,"date":"2024-06-24T20:47:24","date_gmt":"2024-06-24T12:47:24","guid":{"rendered":"https:\/\/abytelalala.cn\/?p=43"},"modified":"2024-10-05T20:47:49","modified_gmt":"2024-10-05T12:47:49","slug":"ubuntu%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e9%83%a8%e7%bd%b2docker","status":"publish","type":"post","link":"https:\/\/abytelalala.cn\/index.php\/2024\/06\/24\/ubuntu%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e9%83%a8%e7%bd%b2docker\/","title":{"rendered":"\u4ece\u96f6\u5f00\u59cb\u90e8\u7f72ubuntu\u4e0a\u7684docker"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">ubuntu<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo passwd root \nsu -\napt update\napt upgrade\napt install net-tools\napt install nano\napt install openssh-server\nifconfig\n\/\/\u67e5\u770bip\u4e4b\u540e\uff0c\u53ef\u4ee5ssh\u8fdc\u7a0b\u8fde\u63a5\u4e86\u3002\u5982\u679c\u4f60\u7528\u7684\u662f\u865a\u62df\u673a\uff0c\u5c31\u4e0d\u7528\u5728\u96be\u770b\u5361\u987f\u7684ubentu\u91cc\u4e86\u3002\n\n<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u63a8\u8350\u4e00\u4e2assh\u5de5\u5177\u53eb\u505a\uff0cMobaXterm\u3002\u7136\u540e\u8fde\u4e0a\u4e4b\u540e\u5b89\u88c5docker\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install ca-certificates curl gnupg lsb-release\n\ncurl -fsSL http:\/\/mirrors.aliyun.com\/docker-ce\/linux\/ubuntu\/gpg | apt-key add -\n\nadd-apt-repository \"deb &#91;arch=amd64] http:\/\/mirrors.aliyun.com\/docker-ce\/linux\/ubuntu $(lsb_release -cs) stable\"\n\napt-get install docker-ce docker-ce-cli containerd.io\n\nsystemctl start docker\n\napt-get -y install apt-transport-https ca-certificates curl software-properties-common\n\nservice docker restart\n\ndocker version\ndocker run hello-world\ndocker images\/\/\u901a\u8fc7\u7ed3\u679c\u770b\u662f\u5426\u5b89\u88c5\u6210\u529f\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu \u8fd9\u91cc\u63a8\u8350\u4e00\u4e2assh\u5de5\u5177\u53eb\u505a\uff0cMobaXterm\u3002\u7136\u540e\u8fde\u4e0a\u4e4b\u540e\u5b89\u88c5docker\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[10],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-8","tag-docker"],"_links":{"self":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":10,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":453,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions\/453"}],"wp:attachment":[{"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/abytelalala.cn\/index.php\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}