-
Notifications
You must be signed in to change notification settings - Fork 4
/
273.txt
45 lines (33 loc) · 1.98 KB
/
273.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[1] [CITE@en[Overview of Docker Compose | Docker Documentation]]
( ([TIME[2017-06-10 02:19:31 +09:00]]))
<https://docs.docker.com/compose/overview/>
[2] [CITE@en[Get Started, Part 4: Swarms | Docker Documentation]]
( ([TIME[2017-06-10 02:52:22 +09:00]]))
<https://docs.docker.com/get-started/part4/>
[3] [CITE@en[Get Started, Part 3: Services | Docker Documentation]]
( ([TIME[2017-06-10 02:52:22 +09:00]]))
<https://docs.docker.com/get-started/part3/>
[4] [CITE@en[docker stack | Docker Documentation]]
( ([TIME[2017-06-10 10:22:12 +09:00]]))
<https://docs.docker.com/engine/reference/commandline/stack/>
[5] [[DAB]]
[6] [CITE[VPSにdockerで複数サイトをホスティングするには?]]
([TIME[2017-06-10 17:55:38 +09:00]])
<https://suin.io/561>
[7]
[CODE[networks][docker network]] で [CODE[external]] なネットワークに接続するように指定できます。
接続先のネットワークに同名のホスト (サービス) があっても、自スタックのサービスが優先されます。
[CODE[{stack}_{service}]] のような名前を使えば、常に特定のスタックのサービスに接続できます。
[8]
[CITE@en[Get Started, Part 5: Stacks | Docker Documentation]]
( ([TIME[2017-06-10 02:52:22 +09:00]]))
<https://docs.docker.com/get-started/part5/>
[9]
deploy を実行したとき、変更がないサービスは元の container がそのまま動かされ続けます。
[10]
[CODE[env_file]] で指定したファイルの中身が変更されていれば、変更があったとみなして再起動されます
(タイムスタンプを更新するだけではだめです)。
[11] [CODE[secrets:]] で指定したファイルが更新された後に deploy を実行すると、
[CODE[Error response from daemon: rpc error: code = 3 desc = only updates to Labels are allowed]]
といわれて失敗してしまいます。 secrets を使うと避けられないのでしょうか。
[TIME[2017-06-12T08:59:11.300Z]]