10632b008b 
								
							 
						 
						
							
							
								
								Add version to UserAgent on  ACI  
							
							... 
							
							
							
							This also refactors the Version insertion to make it global
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com> 
							
						 
						
							2020-10-12 09:15:32 +02:00  
				
					
						
							
							
								 
						
							
								0d3f7186c5 
								
							 
						 
						
							
							
								
								Hardcoded list of commands and simplified metrics gathering.  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-10-08 11:59:12 +02:00  
				
					
						
							
							
								 
						
							
								e10424e316 
								
							 
						 
						
							
							
								
								Normalize case of command and flag help  
							
							... 
							
							
							
							Signed-off-by: Amos Law <ahlaw.dev@gmail.com> 
							
						 
						
							2020-10-03 20:43:18 -04:00  
				
					
						
							
							
								 
						
							
								b8968e83cd 
								
							 
						 
						
							
							
								
								Do not fail when constructing error message for commands not implemented. Use metrics GetCommand() the is already used 3 lines above for metrics tracking.  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-30 10:49:14 +02:00  
				
					
						
							
							
								 
						
							
								7b169744a2 
								
							 
						 
						
							
							
								
								cli: Sort main imports  
							
							... 
							
							
							
							Signed-off-by: Chris Crone <christopher.crone@docker.com> 
							
						 
						
							2020-09-25 14:28:26 +02:00  
				
					
						
							
							
								 
						
							
								8302266212 
								
							 
						 
						
							
							
								
								In metrics, send context type, not context name (metrics for Moby calls)  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-23 16:12:09 +02:00  
				
					
						
							
							
								 
						
							
								334ebf5f75 
								
							 
						 
						
							
							
								
								Implement --domainname flag on compose up, also defining compose extension "x-aci-domain-name" to store ACI DNSLabelName.  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-22 14:41:31 +02:00  
				
					
						
							
							
								 
						
							
								268c02523a 
								
							 
						 
						
							
							
								
								Only add `--domainname` flag to `docker run` in ACI context  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-22 14:41:31 +02:00  
				
					
						
							
							
								 
						
							
								d154c41586 
								
							 
						 
						
							
							
								
								Update copyright  
							
							... 
							
							
							
							Signed-off-by: Chris Crone <christopher.crone@docker.com> 
							
						 
						
							2020-09-22 12:13:00 +02:00  
				
					
						
							
							
								 
						
							
								a71b2a39bd 
								
							 
						 
						
							
							
								
								Add status field in API metrics  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-18 15:22:34 +02:00  
				
					
						
							
							
								 
						
							
								3ccc603461 
								
							 
						 
						
							
							
								
								Add status field in CLI metrics : success, failure, cancelled  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-18 10:47:50 +02:00  
				
					
						
							
							
								 
						
							
								9c6aead797 
								
							 
						 
						
							
							
								
								Allow running commands with HOME=“”.  
							
							... 
							
							
							
							Do not try to create ~/.docker before using CONFIG_DIR. HOME=“” will result in trying to use a relative .docker folder as default config folder, and if we cannot create the context store for any reason, try delegate to Moby CLI.
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-17 09:08:17 +02:00  
				
					
						
							
							
								 
						
							
								b85eddd09c 
								
							 
						 
						
							
							
								
								Remove duplicated code formatting multi errors  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-11 16:08:14 +02:00  
				
					
						
							
							
								 
						
							
								099b64935b 
								
							 
						 
						
							
							
								
								Minor fixes  
							
							... 
							
							
							
							Co-authored-by: Chris Crone <christopher.crone@docker.com>
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-10 14:55:46 +02:00  
				
					
						
							
							
								 
						
							
								38a8f5310b 
								
							 
						 
						
							
							
								
								Volume command is only available in aci context type, with ACI specific flags  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-10 09:14:39 +02:00  
				
					
						
							
							
								 
						
							
								08562b403e 
								
							 
						 
						
							
							
								
								Connecting it all  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-08 15:30:50 +02:00  
				
					
						
							
							
								 
						
							
								9ed06ece5b 
								
							 
						 
						
							
							
								
								Adding volume API & initial CLI command  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-08 15:30:50 +02:00  
				
					
						
							
							
								 
						
							
								303958bb44 
								
							 
						 
						
							
							
								
								Merge pull request  #574  from ulyssessouza/alias-rm-kill  
							
							... 
							
							
							
							Add 'kill' as an alias to 'stop' 
							
						 
						
							2020-09-04 13:07:38 +02:00  
				
					
						
							
							
								 
						
							
								adeba9b124 
								
							 
						 
						
							
							
								
								Fix bug not allowing users to run any context command when set to an aws context type.  
							
							... 
							
							
							
							When users have an “aws" context type, we try to exec the command (will execute context ls, context use, etc.) and when it fails because it doesn’t find the aws backend, then display the custom error for aws context type.
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-09-04 11:01:55 +02:00  
				
					
						
							
							
								 
						
							
								15066ce999 
								
							 
						 
						
							
							
								
								Add 'kill' command  
							
							... 
							
							
							
							- On ACI that's implemented as a stop,
since ACI does not implement a kill
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com> 
							
						 
						
							2020-09-04 02:57:54 +02:00  
				
					
						
							
							
								 
						
							
								fed50d79f2 
								
							 
						 
						
							
							
								
								introduce ecs-local context  
							
							... 
							
							
							
							Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> 
							
						 
						
							2020-08-31 15:30:05 +02:00  
				
					
						
							
							
								 
						
							
								7f8bb030e6 
								
							 
						 
						
							
							
								
								Introduce ECS emulation mode  
							
							... 
							
							
							
							Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> 
							
						 
						
							2020-08-31 10:01:52 +02:00  
				
					
						
							
							
								 
						
							
								ad5c465bd1 
								
							 
						 
						
							
							
								
								Merge pull request  #485  from docker/repo-rename  
							
							... 
							
							
							
							Rename docker/api -> docker/compose-cli 
							
						 
						
							2020-08-25 15:58:51 +02:00  
				
					
						
							
							
								 
						
							
								59f7d7cd00 
								
							 
						 
						
							
							
								
								Redirect user from plugin usage to integrated ECS  
							
							... 
							
							
							
							Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com> 
							
						 
						
							2020-08-24 19:29:10 +02:00  
				
					
						
							
							
								 
						
							
								4c6280b0e9 
								
							 
						 
						
							
							
								
								Rename docker/api -> docker/compose-cli  
							
							... 
							
							
							
							Signed-off-by: Chris Crone <christopher.crone@docker.com> 
							
						 
						
							2020-08-21 17:28:39 +02:00  
				
					
						
							
							
								 
						
							
								4c3b563182 
								
							 
						 
						
							
							
								
								ECS context type is not for delegation to Moby !  
							
							... 
							
							
							
							Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> 
							
						 
						
							2020-08-21 14:32:46 +02:00  
				
					
						
							
							
								 
						
							
								32adf3e4e6 
								
							 
						 
						
							
							
								
								Introduce `secret` management command and ECS implementation  
							
							... 
							
							
							
							Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> 
							
						 
						
							2020-08-21 13:56:52 +02:00  
				
					
						
							
							
								 
						
							
								635ecd7b99 
								
							 
						 
						
							
							
								
								Return a default implementation when nil  
							
							... 
							
							
							
							Some backends can decide not to implement a whole set of APIs (compose
for example), we now return a default implementation that returns a
`errdefs.ErrNotImplemented` for each action making it easy for the cli
to print a helpful error message. We also remove any possible nil
panics.
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com> 
							
						 
						
							2020-08-20 14:32:03 +02:00  
				
					
						
							
							
								 
						
							
								88c405e025 
								
							 
						 
						
							
							
								
								Use buffered channels for signals  
							
							
							
						 
						
							2020-08-13 10:34:42 +02:00  
				
					
						
							
							
								 
						
							
								1a3182fb7f 
								
							 
						 
						
							
							
								
								Implement `docker start` for ACI  
							
							
							
						 
						
							2020-08-12 14:50:47 +02:00  
				
					
						
							
							
								 
						
							
								ee062e8333 
								
							 
						 
						
							
							
								
								ACI Stop implementation  
							
							
							
						 
						
							2020-08-12 10:32:35 +02:00  
				
					
						
							
							
								 
						
							
								093a69136f 
								
							 
						 
						
							
							
								
								Add --force to rm on ACI  
							
							... 
							
							
							
							If a container is running the user must force the removal of the
container. 
							
						 
						
							2020-08-11 16:30:42 +02:00  
				
					
						
							
							
								 
						
							
								d1b8bcb2c7 
								
							 
						 
						
							
							
								
								fix signal passing to mobycli  
							
							... 
							
							
							
							Signed-off-by: aiordache <anca.iordache@docker.com> 
							
						 
						
							2020-08-05 15:05:32 +02:00  
				
					
						
							
							
								 
						
							
								87245ef727 
								
							 
						 
						
							
							
								
								rename packages ( amazon to ecs and azure to aci )  
							
							... 
							
							
							
							Signed-off-by: aiordache <anca.iordache@docker.com> 
							
						 
						
							2020-07-30 11:34:34 +02:00  
				
					
						
							
							
								 
						
							
								355295696f 
								
							 
						 
						
							
							
								
								Create aws context  
							
							... 
							
							
							
							Signed-off-by: aiordache <anca.iordache@docker.com> 
							
						 
						
							2020-07-30 11:34:34 +02:00  
				
					
						
							
							
								 
						
							
								5a26b25709 
								
							 
						 
						
							
							
								
								handle compose on all context types  
							
							... 
							
							
							
							Signed-off-by: aiordache <anca.iordache@docker.com> 
							
						 
						
							2020-07-29 11:58:09 +02:00  
				
					
						
							
							
								 
						
							
								492ce96dd4 
								
							 
						 
						
							
							
								
								Implement azure logout  
							
							
							
						 
						
							2020-07-08 17:48:10 +02:00  
				
					
						
							
							
								 
						
							
								0776e79e8e 
								
							 
						 
						
							
							
								
								Exit without error message if user canceled command (typical scenario : ACI `logs — follow` and ctrl-C while querying ACI)  
							
							
							
						 
						
							2020-07-06 17:28:02 +02:00  
				
					
						
							
							
								 
						
							
								964e331a10 
								
							 
						 
						
							
							
								
								Specific exit code when command fails because azure login is required. Will be used by VSCode Docker integration  
							
							
							
						 
						
							2020-07-02 13:52:57 +02:00  
				
					
						
							
							
								 
						
							
								98976e4cb4 
								
							 
						 
						
							
							
								
								Cleanup entrypoint  
							
							... 
							
							
							
							* use the `fatal` function when we can
* rename moby.ExecRegardlessContext to Exec 
							
						 
						
							2020-06-26 10:23:37 +02:00  
				
					
						
							
							
								 
						
							
								908212a947 
								
							 
						 
						
							
							
								
								Add version in the main package  
							
							... 
							
							
							
							This way, when we release goreleaser will inject the right version in
the ldflags 
							
						 
						
							2020-06-25 12:00:37 +02:00  
				
					
						
							
							
								 
						
							
								0c1f0f81df 
								
							 
						 
						
							
							
								
								Usage metrics  
							
							... 
							
							
							
							Send usage to Docker Desktop 
							
						 
						
							2020-06-23 16:52:52 +02:00  
				
					
						
							
							
								 
						
							
								fa8b911cd8 
								
							 
						 
						
							
							
								
								Allow running `docker -v` or `--version` even if context is not default  
							
							
							
						 
						
							2020-06-23 15:13:43 +02:00  
				
					
						
							
							
								 
						
							
								38d4f8d25a 
								
							 
						 
						
							
							
								
								Shell out to Moby cli if user uses -H, regardless of context set. Moby cli will refuse both options (context & host) to be set at the same time  
							
							
							
						 
						
							2020-06-23 12:00:46 +02:00  
				
					
						
							
							
								 
						
							
								dbaab41604 
								
							 
						 
						
							
							
								
								Changed root level debug shorthand to capital D, make it consistent with Moby flag and not clash with —detach future option  
							
							
							
						 
						
							2020-06-22 13:19:37 +02:00  
				
					
						
							
							
								 
						
							
								45750fe104 
								
							 
						 
						
							
							
								
								Do not display “docker for the 2020s” as the first help line !  
							
							
							
						 
						
							2020-06-19 12:21:31 +02:00  
				
					
						
							
							
								 
						
							
								ad72c866cc 
								
							 
						 
						
							
							
								
								Add license headers  
							
							
							
						 
						
							2020-06-18 16:48:03 +02:00  
				
					
						
							
							
								 
						
							
								ab3cd0fec1 
								
							 
						 
						
							
							
								
								Renamed ExecIfDefaultCtxType for more explicit behaviour  
							
							
							
						 
						
							2020-06-18 09:29:01 +02:00  
				
					
						
							
							
								 
						
							
								bbcdad39d5 
								
							 
						 
						
							
							
								
								Renamed docker-classic to “com.docker.com”.  
							
							
							
						 
						
							2020-06-17 17:57:53 +02:00  
				
					
						
							
							
								 
						
							
								96bc1ca6f1 
								
							 
						 
						
							
							
								
								Add inspect command  
							
							... 
							
							
							
							Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com> 
							
						 
						
							2020-06-15 15:08:04 +02:00