mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Re-implement --before and --since as options for --filter
* This commit will mark --before and --since as deprecated, but leave their behavior unchanged until they are removed, then re-implement them as options for --filter. * And update the related docs. * Update the integration tests. Fixes issue #17716 Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
This commit is contained in:
		
							parent
							
								
									ee03a05595
								
							
						
					
					
						commit
						1921c62938
					
				
					 6 changed files with 77 additions and 55 deletions
				
			
		|  | @ -15,16 +15,14 @@ parent = "smn_cli" | |||
|     List containers | ||||
| 
 | ||||
|       -a, --all=false       Show all containers (default shows just running) | ||||
|       --before=""           Show only container created before Id or Name | ||||
|       -f, --filter=[]       Filter output based on conditions provided | ||||
|       --format=[]           Pretty-print containers using a Go template | ||||
|       --help=false          Print usage | ||||
|       -l, --latest=false    Show the latest created container, include non-running | ||||
|       -n=-1                 Show n last created containers, include non-running | ||||
|       -l, --latest=false    Show the latest created container (includes all states) | ||||
|       -n=-1                 Show n last created containers (includes all states) | ||||
|       --no-trunc=false      Don't truncate output | ||||
|       -q, --quiet=false     Only display numeric IDs | ||||
|       -s, --size=false      Display total file sizes | ||||
|       --since=""            Show created since Id or Name, include non-running | ||||
| 
 | ||||
| Running `docker ps --no-trunc` showing 2 linked containers. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wen Cheng Ma
						Wen Cheng Ma