Bläddra i källkod

Merge pull request #2554 from aanand/clarify-rm-behaviour

Clarify behaviour of 'rm'
Aanand Prasad 9 år sedan
förälder
incheckning
12a08255b5
2 ändrade filer med 10 tillägg och 0 borttagningar
  1. 5 0
      compose/cli/main.py
  2. 5 0
      docs/reference/rm.md

+ 5 - 0
compose/cli/main.py

@@ -344,6 +344,11 @@ class TopLevelCommand(DocoptCommand):
         """
         Remove stopped service containers.
 
+        By default, volumes attached to containers will not be removed. You can see all
+        volumes with `docker volume ls`.
+
+        Any data which is not in a volume will be lost.
+
         Usage: rm [options] [SERVICE...]
 
         Options:

+ 5 - 0
docs/reference/rm.md

@@ -20,3 +20,8 @@ Options:
 ```
 
 Removes stopped service containers.
+
+By default, volumes attached to containers will not be removed. You can see all
+volumes with `docker volume ls`.
+
+Any data which is not in a volume will be lost.