Commit Graph

2292 Commits

Author SHA1 Message Date
Guillaume Tardif 7a6712afdb Do not inspect for double container name at creation time, this has already been checked, let moby error bubble up if there is a name clash at this stage
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-08 10:59:58 +01:00
Ulysses Souza 0021b14de8 Add unit tests to container_name
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-01-08 10:05:53 +01:00
Ulysses Souza b3993230d1 Add network alias to container name
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-01-07 17:06:40 -03:00
Ulysses Souza b264e1814b Add warning on container_name and scale > 1
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-01-07 17:06:40 -03:00
Ulysses Souza 8976a20698 Use `container_name` property on service
This applies `container_name` when available in
the service definition.

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-01-07 17:06:40 -03:00
Nicolas De loof d12ffe92a4
Merge pull request #1111 from docker/ecs_dev_req
ECS: Parse DeviceRequest struct for GPU access setup
2021-01-07 17:01:34 +01:00
aiordache fef73b8af3 Parse reservation.devices for GPU requests
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-01-07 16:27:15 +01:00
Nicolas De loof c6cdfec530
Merge pull request #1110 from docker/ecs_paginate
handle API pagination
2021-01-07 16:06:04 +01:00
Nicolas De Loof 59d17a45a0
handle API pagination
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-07 10:32:15 +01:00
Nicolas De loof 1cf48318a4
Merge pull request #1106 from docker/orphans
introduce --remove-orphans option
2021-01-07 10:16:43 +01:00
Nicolas De loof f87edcf276
Merge pull request #1107 from aiordache/local_gpu_support 2021-01-07 10:10:47 +01:00
aiordache 31e40176da Add GPU support via DeviceRequests
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-01-07 10:00:19 +01:00
Nicolas De Loof 4de01936f8
introduce --remove-orphans option
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-06 14:36:59 +01:00
Guillaume Tardif 6e8975db79
Merge pull request #1105 from docker/flaky_aci
Improving ACI E2E tests with platform flakyness
2021-01-06 14:28:03 +01:00
Guillaume Tardif f3c017f502 Trying to address more ACI flakyness, on container restart
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 11:17:55 +01:00
Guillaume Tardif 2f4a84baff Fixed assertion after retry due to ACI flakyness on prune
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 11:17:55 +01:00
Nicolas De loof ba3b057b8e
Merge pull request #1103 from gtardif/flaky_down
When running compose down, remove containers with Force=true
2021-01-06 10:42:17 +01:00
Nicolas De loof 849fbed1ac
Merge pull request #1100 from docker/ecs-secrets-cleanup
Remove unnecessary retry in ECS secrets test
2021-01-06 10:28:27 +01:00
Guillaume Tardif 246b763874 Remove unnecessary retry in ECS secrets test
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 10:10:36 +01:00
Guillaume Tardif 0a5328748a When running compose down, remove containers with Force=true in case some container is still up for any reason (happened in some E2E test once)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-06 10:07:40 +01:00
Guillaume Tardif df4fed266b
Merge pull request #1095 from docker/push_pull
ignore services without image attribute
2021-01-05 19:13:13 +01:00
Guillaume Tardif e6b0825ffc
Merge pull request #1099 from docker/separate_test_workflows
Split optional CI workflows to allow re-running only ACI, ECS or Windows
2021-01-05 19:12:54 +01:00
Guillaume Tardif fe90934ed3 Split optional CI workflows to allow re-running only ACI, ECS or Windows.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-05 18:20:15 +01:00
Nicolas De loof e63dc29b9f
Merge pull request #1098 from gtardif/debug_info_flaky_ecs_tests
Fix ECS flaky test and add bettre debug info in assertions
2021-01-05 17:46:12 +01:00
Guillaume Tardif e98a790ce9 Fix ECS flaky test and add bettre debug info in assertions
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-05 17:25:26 +01:00
Nicolas De loof 92eeb624ea
Merge pull request #1078 from docker/backend_cli
Add backend-metadata command for CLI backend
2021-01-05 16:45:06 +01:00
Guillaume Tardif 1939047fe6 Add backend-metadata command (hidden) for CLI backend
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-05 16:36:51 +01:00
Nicolas De Loof 5a455e47c3
ignore services without image attribute
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-05 09:47:29 +01:00
Guillaume Tardif 6bf3a5f0d2
Merge pull request #1094 from docker/docs_metadata
Add metadata for docs included in docs.docker.com
2021-01-04 15:53:44 +01:00
Guillaume Tardif 01fe40cd07 Add metadata for docs included in docs.docker.com (see https://github.com/docker/docker.github.io/pull/11865)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-04 15:22:48 +01:00
Ulysses Souza cef7a2d4ce Refactor ProjectName
This separate project name and service name for command `run`

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-01-04 14:11:54 +00:00
Nicolas De Loof b560f0cbe9
Added a diagnostic log for region mismtach
should help to diagnose #1084 #1056

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-04 14:14:45 +01:00
Guillaume Tardif 4dd8931d0d
Merge pull request #1091 from docker/dotEnv
Add support for .env file when loading compose files
2021-01-04 10:13:18 +01:00
Nicolas De Loof daacc872c1
Add support for .env file when loading compose files
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-01-04 09:56:09 +01:00
Guillaume Tardif 06a1e2d39f
Merge pull request #1081 from chris-crone/go-1.15.6
Bump Golang to 1.15.6
2020-12-24 14:02:02 +01:00
Guillaume Tardif 4e011cc8f4
Merge pull request #1082 from chris-crone/bump-lint-ci
Bump linter on CI
2020-12-24 14:01:51 +01:00
Guillaume Tardif d6ea52a73e
Merge pull request #1083 from chris-crone/maintainers
Fix typo in MAINTAINERS
2020-12-24 14:01:42 +01:00
Chris Crone 0fb9b75b9d maintainers: Fix typo
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-24 12:26:52 +01:00
Chris Crone e81ea5b3e5 deps: Bump Golang
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-24 12:17:14 +01:00
Chris Crone fd187426e5 ci: Bump linter
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-24 12:15:59 +01:00
Guillaume Tardif b2b9ce0a53
Merge pull request #1003 from aiordache/compose_run_cmd
Add local `compose run` command
2020-12-18 10:09:04 +01:00
Guillaume Tardif 3714ab7d41 Attaching container logs
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:08 +01:00
Guillaume Tardif db73c928f3 Ensure image exist for run service
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:08 +01:00
Guillaume Tardif dc211b178a Fixed race when down with multiple containers for one service
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:08 +01:00
Guillaume Tardif 32d5644937 Pass reader Writer as options to backend, remove hardcoded os.Stdout
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:01:06 +01:00
Guillaume Tardif bad0d41d90 Auto-remove using container config
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:00:19 +01:00
Guillaume Tardif d2cfffafb4 Attach to container using compose attach
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:00:19 +01:00
Guillaume Tardif 76f36a69c6 Reusing existing Create() and Start() API
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 10:00:18 +01:00
Guillaume Tardif 27dc2e5be1 Reuse Create(Project) and Start(Project)
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00
Guillaume Tardif 1e6c4263cb Also test running bash commands with `run /bin/sh -c …`, better test on slug label
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-18 09:59:02 +01:00