{"id":2260,"date":"2022-03-06T21:53:59","date_gmt":"2022-03-06T12:53:59","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=2260"},"modified":"2022-04-13T07:28:26","modified_gmt":"2022-04-12T22:28:26","slug":"docker-3","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2022\/03\/06\/docker-3\/","title":{"rendered":"Docker+Rails\u3067\u958b\u767a\u3059\u308b\u3068\u304d\u306e\u30e1\u30e2(\u81ea\u5206\u7528\u30e1\u30e2)"},"content":{"rendered":"<h3>\u5fd8\u308c\u305f\u6642\u7528\u306bDocker\u3092\u7528\u3044\u305f\u958b\u767a\u306e\u3084\u308a\u65b9\u306e\u624b\u9806\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/h3>\n<h3>\u524d\u63d0\uff1aDocker Desktop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b(OS\u306fMac)<br \/>\nRubymine\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3002(VScode\u3067\u3082\u3067\u304d\u307e\u3057\u305f)<br \/>\nD\u30c9\u30e9\u30a4\u30d6\u5185\u306b\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0(\u30a2\u30d7\u30ea\u540d)\u306a\u3069\u3092\u7f6e\u3044\u3066\u3044\u308b\u3002<\/h3>\n<ol>\n<li>Docker.app\u3092\u8d77\u52d5\u3059\u308b(Docker desktop)<\/li>\n<li>RubyMine\u3092\u8d77\u52d5\u3059\u308b(VScode\u3067\u3082OK)<\/li>\n<li>cd\u3067\u30a2\u30d7\u30ea\u306e\u4f5c\u696d\u7528\u30d5\u30a9\u30eb\u30c0\u3078\u79fb\u52d5\u00a0\u4f8b:cd \/Volumes\/D\/\u30a2\u30d7\u30ea\u540d<\/li>\n<li>docker-compose build\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u69cb\u7bc9\u3059\u308b<\/li>\n<li>Could not find rake-13.0.1 in any of the sources Run `bundle install` to install missing gems.\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u6642\u306f\u2193<\/li>\n<li>docker-compose stop\u3092\u3057\u3066\u304b\u3089docker-compose down\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u524a\u9664<\/li>\n<li>Gemfile.lock\u306e\u8a18\u8ff0\u3092\u3059\u3079\u3066\u524a\u9664\u3057\u3066\u304b\u3089<\/li>\n<li>docker-compose build\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u307e\u305f\u69cb\u7bc9\u3059\u308b<\/li>\n<li>docker-compose up\u3067\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>Unknown database\u3068\u51fa\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>docker-compose exec web bundle exec rake db:create<\/li>\n<li>docker-compose exec web bundle exec rake db:migrate<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fd8\u308c\u305f\u6642\u7528\u306bDocker\u3092\u7528\u3044\u305f\u958b\u767a\u306e\u3084\u308a\u65b9\u306e\u624b\u9806\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002 \u524d\u63d0\uff1aDocker Desktop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b(OS\u306fMac) Rubymine\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3002(VScode\u3067\u3082\u3067\u304d\u307e\u3057\u305f) D\u30c9\u30e9\u30a4\u30d6\u5185\u306b\u4f5c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[23,27,13],"tags":[],"class_list":["post-2260","post","type-post","status-publish","format-standard","hentry","category-docker","category-programming-note","category-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=2260"}],"version-history":[{"count":8,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2260\/revisions"}],"predecessor-version":[{"id":4978,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/2260\/revisions\/4978"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=2260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=2260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=2260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}