質問編集履歴

2

修正

2020/09/08 09:50

投稿

tomsuma
tomsuma

スコア38

test CHANGED
File without changes
test CHANGED
@@ -10,104 +10,88 @@
10
10
 
11
11
  試したコマンド
12
12
 
13
+
14
+
13
- ```
15
+ ```
16
+
14
-
17
+ docker-compose ps
18
+
19
+ Name Command State Ports
20
+
21
+ ------------------------------------------------------------------------------
22
+
23
+ books_db_1 docker-entrypoint.sh mysqld Up 0.0.0.0:4306->3306/tcp
24
+
25
+ books_web_1 entrypoint.sh bash -c rm - ... Exit 1
26
+
27
+ ```
28
+
29
+ ```
30
+
31
+ user@fukusyun-2 Books % docker search registry
32
+
33
+ NAME DESCRIPTION STARS OFFICIAL AUTOMATED
34
+
35
+ registry The Docker Registry 2.0 implementation for s… 3068 [OK]
36
+
37
+ distribution/registry WARNING: NOT the registry official image!!! … 57 [OK]
38
+
39
+ stefanscherer/registry-windows Containerized docker registry for Windows Se… 32
40
+
41
+ budry/registry-arm Docker registry build for Raspberry PI 2 and… 18
42
+
43
+ deis/registry Docker image registry for the Deis open sour… 12
44
+
45
+ jc21/registry-ui A nice web interface for managing your Docke… 12
46
+
47
+ anoxis/registry-cli You can list and delete tags from your priva… 10 [OK]
48
+
49
+ allingeek/registry A specialization of registry:2 configured fo… 4 [OK]
50
+
51
+ pallet/registry-swift Add swift storage support to the official do… 4 [OK]
52
+
53
+ arm32v6/registry The Docker Registry 2.0 implementation for s… 3
54
+
55
+ goharbor/registry-photon 2
56
+
57
+ webhippie/registry Docker images for Registry 1 [OK]
58
+
59
+ conjurinc/registry-oauth-server Docker registry authn/authz server backed by… 1
60
+
61
+ ibmcom/registry Docker Image for IBM Cloud private-CE (Commu… 1
62
+
63
+ concourse/registry-image-resource 1
64
+
65
+ metadata/registry Metadata Registry is a tool which helps you … 1 [OK]
66
+
67
+ upmcenterprises/registry-creds 0
68
+
69
+ kontena/registry Kontena Registry 0
70
+
71
+ dwpdigital/registry-image-resource Concourse resource type 0
72
+
73
+ gisjedi/registry-proxy Reverse proxy of registry mirror image gisje… 0
74
+
75
+ lorieri/registry-ceph Ceph Rados Gateway (and any other S3 compati… 0
76
+
77
+ convox/registry 0
78
+
79
+ digillect/registry-cleaner Tool to remove unused images from Docker reg… 0 [OK]
80
+
81
+ pivnet/registry-gcloud-image 0
82
+
83
+ deepsecurity/registryviews Deep Security Smart Check 0
84
+
85
+ ```
86
+
87
+ ```
88
+
15
- docker-compose run web bundle exec rake db:create
89
+ docker-compose run web rails db:migrate RAILS_ENV=production
16
90
 
17
91
  Starting books_db_1 ... done
18
92
 
19
93
  Creating books_web_run ... done
20
94
 
21
- Access denied for user 'root'@'172.19.0.3' (using password: YES)
22
-
23
- Couldn't create 'Books_development' database. Please check your configuration.
24
-
25
- rake aborted!
26
-
27
- Mysql2::Error::ConnectionError: Access denied for user 'root'@'172.19.0.3' (using password: YES)
28
-
29
- ```
30
-
31
- ```
32
-
33
- ocker-compose ps
34
-
35
- Name Command State Ports
36
-
37
- ------------------------------------------------------------------------------
38
-
39
- books_db_1 docker-entrypoint.sh mysqld Up 0.0.0.0:4306->3306/tcp
40
-
41
- books_web_1 entrypoint.sh bash -c rm - ... Exit 1
42
-
43
- ```
44
-
45
- ```
46
-
47
- user@fukusyun-2 Books % docker search registry
48
-
49
- NAME DESCRIPTION STARS OFFICIAL AUTOMATED
50
-
51
- registry The Docker Registry 2.0 implementation for s… 3068 [OK]
52
-
53
- distribution/registry WARNING: NOT the registry official image!!! … 57 [OK]
54
-
55
- stefanscherer/registry-windows Containerized docker registry for Windows Se… 32
56
-
57
- budry/registry-arm Docker registry build for Raspberry PI 2 and… 18
58
-
59
- deis/registry Docker image registry for the Deis open sour… 12
60
-
61
- jc21/registry-ui A nice web interface for managing your Docke… 12
62
-
63
- anoxis/registry-cli You can list and delete tags from your priva… 10 [OK]
64
-
65
- allingeek/registry A specialization of registry:2 configured fo… 4 [OK]
66
-
67
- pallet/registry-swift Add swift storage support to the official do… 4 [OK]
68
-
69
- arm32v6/registry The Docker Registry 2.0 implementation for s… 3
70
-
71
- goharbor/registry-photon 2
72
-
73
- webhippie/registry Docker images for Registry 1 [OK]
74
-
75
- conjurinc/registry-oauth-server Docker registry authn/authz server backed by… 1
76
-
77
- ibmcom/registry Docker Image for IBM Cloud private-CE (Commu… 1
78
-
79
- concourse/registry-image-resource 1
80
-
81
- metadata/registry Metadata Registry is a tool which helps you … 1 [OK]
82
-
83
- upmcenterprises/registry-creds 0
84
-
85
- kontena/registry Kontena Registry 0
86
-
87
- dwpdigital/registry-image-resource Concourse resource type 0
88
-
89
- gisjedi/registry-proxy Reverse proxy of registry mirror image gisje… 0
90
-
91
- lorieri/registry-ceph Ceph Rados Gateway (and any other S3 compati… 0
92
-
93
- convox/registry 0
94
-
95
- digillect/registry-cleaner Tool to remove unused images from Docker reg… 0 [OK]
96
-
97
- pivnet/registry-gcloud-image 0
98
-
99
- deepsecurity/registryviews Deep Security Smart Check 0
100
-
101
- ```
102
-
103
- ```
104
-
105
- docker-compose run web rails db:migrate RAILS_ENV=production
106
-
107
- Starting books_db_1 ... done
108
-
109
- Creating books_web_run ... done
110
-
111
95
  DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <main> at /Books/config/application.rb:7)
112
96
 
113
97
 
@@ -495,3 +479,87 @@
495
479
  exec "$@"
496
480
 
497
481
  ```
482
+
483
+
484
+
485
+ ```build時にエラー
486
+
487
+
488
+
489
+ Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/rails-dom-testing-2.0.3.gem)
490
+
491
+ 省略
492
+
493
+ Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/rails-dom-testing-2.0.3.gem)
494
+
495
+ * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
496
+
497
+ primary implementation: https://sass-lang.com/install
498
+
499
+
500
+
501
+ * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
502
+
503
+ sassc gem: https://github.com/sass/sassc-ruby#readme
504
+
505
+
506
+
507
+ * For more details, please refer to the Sass blog:
508
+
509
+ https://sass-lang.com/blog/posts/7828841
510
+
511
+
512
+
513
+ Removing intermediate container 8bd9d59f8a9e
514
+
515
+ ---> 5f8ccb68b6a8
516
+
517
+ Step 9/14 : COPY . /Books/
518
+
519
+ ---> bae50ec6a18f
520
+
521
+ Step 10/14 : COPY entrypoint.sh /usr/bin/
522
+
523
+ ---> 73e8ff54cc78
524
+
525
+ Step 11/14 : RUN chmod +x /usr/bin/entrypoint.sh
526
+
527
+ ---> Running in b7e08fdfeb7a
528
+
529
+ Removing intermediate container b7e08fdfeb7a
530
+
531
+ ---> 5d4266538f2d
532
+
533
+ Step 12/14 : ENTRYPOINT ["entrypoint.sh"]
534
+
535
+ ---> Running in 570b3b80ed3f
536
+
537
+ Removing intermediate container 570b3b80ed3f
538
+
539
+ ---> baec69296533
540
+
541
+ Step 13/14 : EXPOSE 3000
542
+
543
+ ---> Running in 76cb5aed3e0b
544
+
545
+ Removing intermediate container 76cb5aed3e0b
546
+
547
+ ---> 3912382d6f32
548
+
549
+ Step 14/14 : CMD ["rails", "server", "-b", "0.0.0.0"]
550
+
551
+ ---> Running in 8f600fdf2090
552
+
553
+ Removing intermediate container 8f600fdf2090
554
+
555
+ ---> a87608689898
556
+
557
+
558
+
559
+ Successfully built a87608689898
560
+
561
+ Successfully tagged books_web:latest
562
+
563
+
564
+
565
+ ```

1

修正

2020/09/08 09:50

投稿

tomsuma
tomsuma

スコア38

test CHANGED
File without changes
test CHANGED
@@ -134,19 +134,7 @@
134
134
 
135
135
  # socket: /tmp/mysql.sock
136
136
 
137
- services:
137
+
138
-
139
- db:
140
-
141
- command: --default-authentication-plugin=mysql_native_password
142
-
143
- restart: always
144
-
145
- environment:
146
-
147
- MYSQL_ROOT_PASSWORD: example
148
-
149
- image: mysql
150
138
 
151
139
  host: db
152
140