Docker Community Forums

Share and learn in the Docker community.

Service labels to their containers


When I create a service and attach some labels to it. e.g,
docker service create --label “x=10” alpine ping

I think it would be good to propagate those labels to the individual containers of that service. Iam asking as I see it not happening today. If there is a way to do it. Please advice.