You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We allow uppercase letters in service names, but Docker doesn't allow them in image names.
When you use build, the name of the image we create is based on the service name. If it contains uppercase letters, Docker will refuse to create it.
Some options:
Don't allow uppercase letters in service names. Nice and strict, but backwards-incompatible.
Do allow them, but convert to lowercase when generating an image name. This will break in the extremely unlikely scenario that two services have the same name with different case. We could check for and forbid that case if we felt like it.
But we've got to name them something, and it would be quite unhelpful not to incorporate the service name - right now it's nice that when I run docker images I can see which ones come from Compose, and what project/service they belong to.
We allow uppercase letters in service names, but Docker doesn't allow them in image names.
When you use
build, the name of the image we create is based on the service name. If it contains uppercase letters, Docker will refuse to create it.Some options:
But we've got to name them something, and it would be quite unhelpful not to incorporate the service name - right now it's nice that when I run
docker imagesI can see which ones come from Compose, and what project/service they belong to.