Docker Community Forums

Share and learn in the Docker community.

Docker stack service name using dash "-" instead of underscore "_"

Hi.

Running:

docker stack deploy --compose-file stack.yml mystack

creates my services named like:

mystack_myfooservice
mystack_mybarservice

Is there any way services being created using dash ("-") instead of underscore ("_") ?

Thanks

2 Likes