質問編集履歴

1

文字の修正

2020/12/08 03:41

投稿

suirunakamura
suirunakamura

スコア16

test CHANGED
@@ -1 +1 @@
1
- docker-compose up -d --buildに関するエラーについて
1
+ odocker-compose up -d --buildに関するエラーについて
test CHANGED
@@ -6,13 +6,21 @@
6
6
 
7
7
  ```ここに言語を入力
8
8
 
9
- docker-compose up -d --build
10
-
11
- ERROR: The Compose file './docker-compose.yml' is invalid because:
12
-
13
- services.mysql.volumes 'type' is a required property
14
-
15
- services.mysql.volumes 'type' is a required property
9
+ docker-compose up -d --build
10
+
11
+
12
+
13
+ Starting app_db ... error
14
+
15
+ ERROR: for app_db Cannot start service mysql: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\"/host_mnt/Users/nakamura/program/laravel-portfolio/docker-config/mysql/data\\" to rootfs \\"/var/lib/docker/overlay2/3a917c4cbf950dbcc4ae9e8a0b89ab37793a104afccf898ae28930a590853404/merged\\" at \\"/var/lib/docker/overlay2/3a917c4cbf950dbcc4ae9e8a0b89ab37793a104afccf898ae28930a590853404/merged/var/lib/mysql\\" caused \\"not a directory\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
16
+
17
+
18
+
19
+ ERROR: for mysql Cannot start service mysql: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\"/host_mnt/Users/nakamura/program/laravel-portfolio/docker-config/mysql/data\\" to rootfs \\"/var/lib/docker/overlay2/3a917c4cbf950dbcc4ae9e8a0b89ab37793a104afccf898ae28930a590853404/merged\\" at \\"/var/lib/docker/overlay2/3a917c4cbf950dbcc4ae9e8a0b89ab37793a104afccf898ae28930a590853404/merged/var/lib/mysql\\" caused \\"not a directory\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
20
+
21
+ ERROR: Encountered errors while bringing up the project.
22
+
23
+
16
24
 
17
25
  ```
18
26
 
@@ -102,15 +110,9 @@
102
110
 
103
111
  volumes:
104
112
 
105
- - ./docker-config/mysql/data:
113
+ - ./docker-config/mysql/data:/var/lib/mysql
106
-
114
+
107
- - ./docker-config/mysql/my.cnf:
115
+ - ./docker-config/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
108
-
109
- # /var/lib/mysql
110
-
111
- # /etc/mysql/conf.d/my.cnf
112
-
113
-
114
116
 
115
117
  depends_on:
116
118