compose-cli icon indicating copy to clipboard operation
compose-cli copied to clipboard

ECS: docker labels are not supported

Open rverpillot opened this issue 4 years ago • 7 comments

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       

rverpillot avatar May 25 '21 07:05 rverpillot

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

coobas avatar Aug 11 '21 07:08 coobas

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?

mfloresVicomtech avatar Sep 08 '21 14:09 mfloresVicomtech

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.

francoisvdv avatar Dec 30 '21 14:12 francoisvdv

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

DanielEscorciaOrtiz avatar Jan 14 '22 22:01 DanielEscorciaOrtiz

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.

rverpillot avatar Apr 05 '22 13:04 rverpillot

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.

WoodellJ avatar Apr 05 '22 20:04 WoodellJ

Looking at this again I guess it made it into the release that was 5 days ago.

WoodellJ avatar Apr 05 '22 20:04 WoodellJ

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.

stale[bot] avatar Nov 02 '22 02:11 stale[bot]

This issue has been automatically closed because it had not recent activity during the stale period.

stale[bot] avatar Nov 12 '22 12:11 stale[bot]