compose-cli
compose-cli copied to clipboard
ECS: docker labels are not supported
The compatibility table indicates that docker labels are supported in ECS, but this is not the case. Neither at the container level, nor at the deployment level in docker compose file.
I get these warning messages:
WARNING services.labels: unsupported attribute
WARNING services.labels: unsupported attribute
WARNING services.deploy.labels: unsupported attribute
Hi, I have exactly the same issue. Fully described in https://stackoverflow.com/questions/68692878/deploy-labels-in-docker-compose-not-supported-by-aws-ecs.
Docker version: Docker version 20.10.7, build f0df350
Minimum compose file to reproduce:
version: "3"
services:
proxy:
image: traefik:v2.5
deploy:
labels:
- traefik.enable=true
Ouput:
WARNING services.deploy.labels: unsupported attribute
Same here, I was about to test TLS certificate generation with Traefik on ECS, but this wrecks it. Labels are much needed in Traefik, please could you fix this?
According to https://docs.docker.com/cloud/ecs-compose-features/ the service.deploy.labels attribute should be supported. This is not the case though, running Docker version 2.10.11.
I'm experiencing the same issue. Even though ECS integration Compose features says it is supported, I receive this message:
WARNING services.deploy.labels: unsupported attribute
It seems this commit has fixed this issue, but labels have to be used at the service level (service.labels), not at the deploy level (service.deploy.labels). So the documentation stills wrong.
Yeah I was the the author of the commit to support our usage of traefik. It has not yet made it to a full release however.
Looking at this again I guess it made it into the release that was 5 days ago.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it had not recent activity during the stale period.