{"id":307,"date":"2024-06-24T14:05:27","date_gmt":"2024-06-24T05:05:27","guid":{"rendered":"https:\/\/diantech.net\/?p=307"},"modified":"2024-06-24T14:05:27","modified_gmt":"2024-06-24T05:05:27","slug":"ubuntu%e3%81%abdocker%e3%82%92%e4%b8%80%e7%99%ba%e3%81%a7%e5%85%a5%e3%82%8c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/diantech.net\/?p=307","title":{"rendered":"Ubuntu\u306bDocker\u3092\u4e00\u767a\u3067\u5165\u308c\u308b"},"content":{"rendered":"\n<p>\u30bf\u30a4\u30c8\u30eb\u901a\u308a\u3067\u3059\u3002\u30b3\u30d4\u30da\u3059\u308b\u3060\u3051\u3067\u6700\u65b0\u306eDocker\u3068Docker compose\u3001\u5fc5\u8981\u306a\u5834\u5408\u306fWebUI\u3067\u7ba1\u7406\u3059\u308bPortainer\u3092\u4e00\u767a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u8cbc\u3063\u3066\u304a\u304d\u307e\u3059\u3002<br>\u6700\u8fd1\u306eOSS\u306fDocker\u3001\u304a\u3088\u3073Docker compose\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u975e\u5e38\u306b\u591a\u3044\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002\u4ee5\u524d\u306e\u8a18\u4e8b\u306b\u3082\u3042\u3063\u305f\u3088\u3046\u306b\u3001\u79c1\u306fProxmox\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3063\u3061\u3085\u3046\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u591a\u5206\u65e2\u51fa\u3060\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u307e\u3042\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u6e1b\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u3057\u3002<\/p>\n\n\n\n<p>\u76ee\u6b21<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#installdocker\">Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n\n\n\n<li><a href=\"#installportainer\">Portainer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n\n\n\n<li><a href=\"#chromeandall\">\u304a\u307e\u3051\u3001web\u304b\u3089chrome\u3092\u52d5\u304b\u3059\u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installdocker\">Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install -y \\\nca-certificates \\\ncurl \\\ngnupg \\\nlsb-release\nsudo mkdir -p \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\necho \\\n\"deb &#91;arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/ubuntu \\\n$(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list > \/dev\/null\nsudo apt update\nsudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin<\/code><\/pre>\n\n\n\n<p>\u5185\u5bb9\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u3066\u304b\u3089\u3001Docker\u672c\u4f53\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u7248\u306edocker compose\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u30b3\u30d4\u30da\u3057\u3066\u5165\u308c\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installportainer\">Portainer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d -p 9443:9443 --name portainer \\\n\\--restart=always \\\n\\-v \/var\/run\/docker.sock:\/var\/run\/docker.sock \\\n\\-v portainer_data:\/data \\\nportainer\/portainer-ce<\/code><\/pre>\n\n\n\n<p>\u3053\u3063\u3061\u306fDocker\u30b3\u30f3\u30c6\u30ca\u3092WebUI\u3067\u7ba1\u7406\u3067\u304d\u308bPortainer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u4e00\u5fdc\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f8080(\u6697\u53f7\u5316\u3057\u3066\u3044\u306a\u3044http)\u30689443(\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u306b\u3088\u308bhttps)\u306a\u3093\u3067\u3059\u304c\u30018080\u306f\u4f55\u304b\u3068\u4f7f\u7528\u3055\u308c\u308b&amp;9443\u3055\u3048\u3042\u308c\u3070\u826f\u3044\u305f\u3081\u4e00\u3064\u306e\u307f\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"chromeandall\">\u304a\u307e\u3051\u3000Web\u304b\u3089Chrome\u3092\u52d5\u304b\u3059\u30b3\u30f3\u30c6\u30ca\u3068\u5168\u90e8\u76db\u308a<\/h3>\n\n\n\n<p>Chrome\u306e\u3084\u3064\u306f\u3053\u308c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d \\\n\\--name ubuntu-desktop \\\n\\-p 6080:80 \\\n\\-p 5900:5900  \\\n\\-e RESOLUTION=1920x1080 \\\n\\dorowu\/ubuntu-desktop-lxde-vnc<\/code><\/pre>\n\n\n\n<p>Docker&amp;Portainer\u306f\u3053\u308c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\#Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nsudo apt update\nsudo apt install -y \\\nca-certificates \\\ncurl \\\ngnupg \\\nlsb-release\nsudo mkdir -p \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\necho \\\n\"deb &#91;arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/ubuntu \\\n$(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list > \/dev\/null\nsudo apt update\nsudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin\n\\#Portainer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\ndocker run -d -p 9443:9443 --name portainer \\\n\\--restart=always \\\n\\-v \/var\/run\/docker.sock:\/var\/run\/docker.sock \\\n\\-v portainer_data:\/data \\\nportainer\/portainer-ce<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30bf\u30a4\u30c8\u30eb\u901a\u308a\u3067\u3059\u3002\u30b3\u30d4\u30da\u3059\u308b\u3060&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[27,8,28,21],"tags":[16,23,30,29],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-docker","category-linux","category-28","category-21","tag-docker","tag-linux","tag-portainer","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/diantech.net\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diantech.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diantech.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diantech.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diantech.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":4,"href":"https:\/\/diantech.net\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":312,"href":"https:\/\/diantech.net\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions\/312"}],"wp:attachment":[{"href":"https:\/\/diantech.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diantech.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diantech.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}