{"id":915,"date":"2021-09-10T13:38:29","date_gmt":"2021-09-10T04:38:29","guid":{"rendered":"https:\/\/t-office.blue\/?p=915"},"modified":"2021-09-10T13:38:34","modified_gmt":"2021-09-10T04:38:34","slug":"post-915","status":"publish","type":"post","link":"https:\/\/wp.t-office.blue\/?p=915","title":{"rendered":"WordPress\u79fb\u884c\u306e\u65b9\u5411\u6027(Ubuntu, Ansible, Docker)2"},"content":{"rendered":"\n\n<h2 class=\"wp-block-heading\">ansible\u74b0\u5883\u8a2d\u5b9a<\/h2>\n\n\n\n\nwget\u304c\u306a\u304b\u3063\u305f\u306e\u3067homebrew\u3067wget\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u305d\u3053\u304b\u3089ansible\u306econfig\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n\n\n\n\u276f brew install wget<br>\u276f wget https:\/\/raw.githubusercontent.com\/ansible\/ansible\/devel\/examples\/ansible.cfg<br>\n\n\n\n\u305d\u3053\u307e\u3067\u306f\u3044\u3044\u3051\u3069\u3001\u3068\u308a\u3042\u3048\u305aDocker\u3067\u540c\u3058ubuntu20.04\u3092\u69cb\u7bc9\u3057\u3066\u305d\u3053\u306bAnsible\u3057\u3066\u3001\u540c\u3058\u306e\u3092\u3055\u304f\u3089\u306eVPS\u306bGo\u3059\u308b\u611f\u3058\u3067\u884c\u304d\u305f\u3044\u306e\u3067\u3001\u6025\u907dDocker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u306bDocker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u3042\u308b\u3002\n\n\n\n<a href=\"https:\/\/qiita.com\/yasuoka_dev\/items\/073f7e8c7dba75993323\">https:\/\/qiita.com\/yasuoka_dev\/items\/073f7e8c7dba75993323<\/a>\n\n\n\nDocker Desktop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u3002\uff08\u203b\u3061\u306a\u307f\u306b\u3046\u3061\u306fM1 Mac\u306a\u306e\u3067[Mac with Apple chip]\u3068\u3044\u3046\u306e\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu20.04\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n\n<meta charset=\"utf-8\">\u276f <code>docker pull ubuntu:20.0<\/code>\n\n\n\n\u203b\u30b3\u30fc\u30c9\u306fiTerm\u4e0a\u306ezsh\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u3002\n\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu\u306e\u8d77\u52d5<\/h2>\n\n\n\n\n<meta charset=\"utf-8\">\u276f docker run -it -d &#8211;name ubuntu ubuntu:18.04\n\n\n\n<meta charset=\"utf-8\">\u276f docker ps\u3000\u3000\u203b\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\n\n\n\n\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308b\u306b\u306f\n\n\n\n<meta charset=\"utf-8\">\u276f docker exec -it ubuntu \/bin\/bash\n\n\n\n\u30b3\u30f3\u30c6\u30ca\u3092\u30b9\u30c8\u30c3\u30d7\u3059\u308b\u306b\u306f\n\n\n\n<meta charset=\"utf-8\">\u276f docker stop ubuntu\n\n\n\n\u518d\u5ea6\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308b\u306b\u306f\n\n\n\n<meta charset=\"utf-8\">\u276f docker start ubuntu\n\n\n\n<meta charset=\"utf-8\">\u276f docker exec -it ubuntu \/bin\/bash\n\n\n\n\n<h2 class=\"wp-block-heading\">\u3053\u3053\u307e\u3067\u3084\u3063\u305f\u3082\u306e\u306e\u3001\u3001\u3001<\/h2>\n\n\n\n\n\u3000\u5b9f\u306fAnsible\u3067\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3068\u672c\u30b5\u30fc\u30d0\u30fc\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u306fVagrant + Ansible\u3068\u3044\u3046\u74b0\u5883\u306e\u307b\u3046\u304c\u73fe\u5b9f\u306b\u8fd1\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u3053\u306e\u8fba\u3092\u30b0\u30b0\u308a\u59cb\u3081\u305f\u3089\u3001\u6211\u304cM1Mac\u306fVagrant\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u3001\u3001\u3001(\u30c8\u30db\u30db)\u306a\u306e\u3067\u3001\u8272\u3005\u8abf\u3079\u3066\u3044\u308b\u3068UTM\u3068\u3044\u3046\u4eee\u60f3\u5316\u30bd\u30d5\u30c8\u4e0a\u306bUbuntu20.04\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u5efa\u3066\u3089\u308c\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u3053\u3063\u3061\u306b\u65b9\u5411\u8ee2\u63db\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u3059\u308b\u3002\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-\u30aa\u30ea\u30b8\u30ca\u30eb\u30b2\u30fc\u30e0-com wp-block-embed-\u30aa\u30ea\u30b8\u30ca\u30eb\u30b2\u30fc\u30e0-com\">\n\n<div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ZlbDqigY0n\"><a href=\"https:\/\/original-game.com\/how-to-install-ubuntu-on-m1-mac\/\">UTM\u3067M1 Mac\u306bUbuntu\u306e\u4eee\u60f3\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3088\u3046\uff01<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;UTM\u3067M1 Mac\u306bUbuntu\u306e\u4eee\u60f3\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u307f\u3088\u3046\uff01&#8221; &#8212; \u30aa\u30ea\u30b8\u30ca\u30eb\u30b2\u30fc\u30e0.com\" src=\"https:\/\/original-game.com\/how-to-install-ubuntu-on-m1-mac\/embed\/#?secret=hdiXPH7y7o#?secret=ZlbDqigY0n\" data-secret=\"ZlbDqigY0n\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div>\n\n<figcaption>\u53c2\u8003\u306b<\/figcaption>\n\n<\/figure>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>ansible\u74b0\u5883\u8a2d\u5b9a wget\u304c\u306a\u304b\u3063\u305f\u306e\u3067homebrew\u3067wget\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u305d\u3053\u304b\u3089ansible\u306econfig\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 \u276f brew install wget\u276f wget https:\/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-915","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=915"}],"version-history":[{"count":3,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/915\/revisions"}],"predecessor-version":[{"id":918,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/915\/revisions\/918"}],"wp:attachment":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}