質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,75 @@
|
|
11
11
|
down => up だと rails コンテナもリセットされて
|
12
12
|
|
13
13
|
毎回 bundle install が必要になって作業効率が悪いので…
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
追記:
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
docker-compose down <???>
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
に docker ps したときの
|
26
|
+
|
27
|
+
コンテナID NAMES IMAGE名等試してもだめで以下のようなメッセージがでるんですよね
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
Stops containers and removes containers, networks, volumes, and images
|
32
|
+
|
33
|
+
created by `up`.
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
By default, the only things removed are:
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
- Containers for services defined in the Compose file
|
42
|
+
|
43
|
+
- Networks defined in the `networks` section of the Compose file
|
44
|
+
|
45
|
+
- The default network, if one is used
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
Networks and volumes defined as `external` are never removed.
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
Usage: down [options]
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
Options:
|
58
|
+
|
59
|
+
--rmi type Remove images. Type must be one of:
|
60
|
+
|
61
|
+
'all': Remove all images used by any service.
|
62
|
+
|
63
|
+
'local': Remove only images that don't have a custom tag
|
64
|
+
|
65
|
+
set by the `image` field.
|
66
|
+
|
67
|
+
-v, --volumes Remove named volumes declared in the `volumes` section
|
68
|
+
|
69
|
+
of the Compose file and anonymous volumes
|
70
|
+
|
71
|
+
attached to containers.
|
72
|
+
|
73
|
+
--remove-orphans Remove containers for services not defined in the
|
74
|
+
|
75
|
+
Compose file
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
'local': Remove only images that don't have a custom tag
|
80
|
+
|
81
|
+
set by the `image` field.
|
82
|
+
|
83
|
+
とあるので docker-compose down --rmi local イメージ名
|
84
|
+
|
85
|
+
とかやってもだめでした
|