質問編集履歴

5

dockerをアップデートしたらエラー文が少し変更しました。

2019/01/23 14:28

投稿

akioyonamine
akioyonamine

スコア24

test CHANGED
File without changes
test CHANGED
@@ -118,7 +118,9 @@
118
118
 
119
119
  写真は以下です
120
120
 
121
+
122
+
121
- ![イメージ説明](c941df424aefd0f8c7b591ec7c2f446a.png)
123
+ ![イメージ説明](3100a742ed21c59ab6549002e68bd07c.png)
122
124
 
123
125
 
124
126
 

4

dockerをアップデートしたらエラー文が変更しました。

2019/01/23 14:28

投稿

akioyonamine
akioyonamine

スコア24

test CHANGED
@@ -1 +1 @@
1
- Dockerでエラーが出る:standard_init_linux.go:190: exec user process caused "exec format error"
1
+ Dockerでエラーが出る:standard_init_linux.go:207: exec user process caused "exec format error"
test CHANGED
File without changes

3

entrypoint.shを追加しました

2019/01/23 13:58

投稿

akioyonamine
akioyonamine

スコア24

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,30 @@
1
+ entrypoint.sh
2
+
3
+ ```entrypoint
4
+
5
+
6
+
7
+ #!/bin/bash
8
+
9
+ set -e
10
+
11
+
12
+
13
+ # Remove a potentially pre-existing server.pid for Rails.
14
+
15
+ rm -f /myapp/tmp/pids/server.pid
16
+
17
+
18
+
19
+ # Then exec the container's main process (what's set as CMD in the Dockerfile).
20
+
21
+ exec "$@"
22
+
23
+ ```
24
+
1
- ```Dcokerfile
25
+ Dcokerfile
26
+
27
+ ``````
2
28
 
3
29
 
4
30
 
@@ -20,7 +46,7 @@
20
46
 
21
47
 
22
48
 
23
- # Add a script to be executed every time the container starts.
49
+
24
50
 
25
51
  COPY entrypoint.sh /usr/bin/
26
52
 
@@ -32,11 +58,13 @@
32
58
 
33
59
 
34
60
 
35
- # Start the main process.
61
+
36
62
 
37
63
  CMD ["rails", "server", "-b", "0.0.0.0"]
38
64
 
39
65
  ```
66
+
67
+
40
68
 
41
69
  docker-compose.yml
42
70
 

2

リンクを追加しました

2019/01/23 13:21

投稿

akioyonamine
akioyonamine

スコア24

test CHANGED
File without changes
test CHANGED
@@ -98,6 +98,6 @@
98
98
 
99
99
  参考までに、以下のサイトを見ながら進めています
100
100
 
101
- https://docs.docker.com/compose/rails/
101
+ [リンク内容](https://docs.docker.com/compose/rails/)
102
102
 
103
103
  どなたかわかる方ご教授願いします。

1

文章の追加

2019/01/22 14:59

投稿

akioyonamine
akioyonamine

スコア24

test CHANGED
File without changes
test CHANGED
@@ -94,4 +94,10 @@
94
94
 
95
95
 
96
96
 
97
+ 何度試しても同じようなエラーが出ます。
98
+
99
+ 参考までに、以下のサイトを見ながら進めています
100
+
101
+ https://docs.docker.com/compose/rails/
102
+
97
103
  どなたかわかる方ご教授願いします。