質問編集履歴

2

追記

2018/09/11 03:16

投稿

ta539tg70
ta539tg70

スコア20

test CHANGED
File without changes
test CHANGED
@@ -37,3 +37,41 @@
37
37
 
38
38
 
39
39
  書いてあるコマンドの意味はほとんど分かっておらず、そのためほぼコピペで使用している次第ですが、どなたか解決策をご教示いただけますと幸いです。よろしくお願い致します。
40
+
41
+
42
+
43
+ #追記@2018.09.11
44
+
45
+ 試行錯誤を繰り返しながらdocker-compose.ymlのdb欄を下記のように書き換えてdocker-compose runを試したところ、ちょっとした進捗=新しいエラーが出ましたので追記させていただきます。
46
+
47
+
48
+
49
+ ★書き換え後
50
+
51
+ db:
52
+
53
+ build:
54
+
55
+ context: ./containers/mysql
56
+
57
+ (dockerfile項目は削除)
58
+
59
+
60
+
61
+ ★表示される新しいエラー
62
+
63
+ Starting my_app_datastore_1 ... error
64
+
65
+
66
+
67
+ ERROR: for my_app_datastore_1 Cannot start service datastore: b'Mounts denied: \r\nThe path /etc/localtime\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
68
+
69
+
70
+
71
+ ERROR: for datastore Cannot start service datastore: b'Mounts denied: \r\nThe path /etc/localtime\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
72
+
73
+ ERROR: Encountered errors while bringing up the project.
74
+
75
+
76
+
77
+ 当初の「my.cnfが見つからない」エラーはひとまず抜けて、```docker images```をするとmy_app_dbというのが一覧に表示されるようにはなっています。

1

参考ページ内のコード変更箇所のリスト化

2018/09/11 03:16

投稿

ta539tg70
ta539tg70

スコア20

test CHANGED
File without changes
test CHANGED
@@ -20,9 +20,9 @@
20
20
 
21
21
 
22
22
 
23
- 作業用ディレクトリは「work_dir」ではなく「my_app」に
23
+ 0. 作業用ディレクトリは「work_dir」ではなく「my_app」に
24
24
 
25
- ダウンロードしたイメージのバージョン
25
+ 0. ダウンロードしたイメージのバージョン
26
26
 
27
27
  ruby: 2.5.1
28
28
 
@@ -30,9 +30,9 @@
30
30
 
31
31
  mysql: 5.7.23
32
32
 
33
- 2に伴いそれぞれのDockerfile内に記述するバージョン
33
+ 0. #2に伴いそれぞれのDockerfile内に記述するバージョン
34
34
 
35
- ステップ4の「Ruby(Railsを利用するための)コンテナの設定」で作成するGemfile内に記述するRailsのバージョン(5.1.0ではなく5.2.1に)
35
+ 0. ステップ4の「Ruby(Railsを利用するための)コンテナの設定」で作成するGemfile内に記述するRailsのバージョン(5.1.0ではなく5.2.1に)
36
36
 
37
37
 
38
38