mirror of
				https://github.com/docker/compose.git
				synced 2025-10-31 19:24:21 +01:00 
			
		
		
		
	Add --remove-orphans to CLI reference docs Add --remove-orphans to bash completion file Test orphan warning and remove_orphan option in up Signed-off-by: Joffrey F <joffrey@docker.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			790 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			790 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| <!--[metadata]>
 | |
| +++
 | |
| title = "down"
 | |
| description = "down"
 | |
| keywords = ["fig, composition, compose, docker, orchestration, cli,  down"]
 | |
| [menu.main]
 | |
| identifier="down.compose"
 | |
| parent = "smn_compose_cli"
 | |
| +++
 | |
| <![end-metadata]-->
 | |
| 
 | |
| # down
 | |
| 
 | |
| ```
 | |
| Stop containers and remove containers, networks, volumes, and images
 | |
| created by `up`. Only containers and networks are removed by default.
 | |
| 
 | |
| Usage: down [options]
 | |
| 
 | |
| Options:
 | |
|     --rmi type          Remove images, type may be one of: 'all' to remove
 | |
|                         all images, or 'local' to remove only images that
 | |
|                         don't have an custom name set by the `image` field
 | |
|     -v, --volumes       Remove data volumes
 | |
| 
 | |
|     --remove-orphans    Remove containers for services not defined in the
 | |
|                         Compose file
 | |
| ```
 |