New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose v3.9 name attribute fails validation ('name' does not match any of the regexes) #9412
Comments
Same problem after upgrading to docker 20.10.13, before it was working without problems. |
docker-compose version 1.29 does not support this new attribute introduced by the compose specification, this only can be used with compose v2 |
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. |
Description
Hi. I've been using Compose for a while. Recently I started adding
name
attribute to the files to specify container group/project name.But recently, I get this error when building. (See: Describe the results you received section)
If I comment out the
name
attribute, compose can build with the file normally.Ref. Issue: #745
I've searched in the issues and did not find any mention of this attribute being deprecated.
(For now I'd use
COMPOSE_PROJECT_NAME
env variable as a workaround.)Steps to reproduce the issue:
docker-compose.yaml
with minimalservices
section.name: 'my-project'
to root of file.docker-compose build
ordocker-compose -f docker-compose.yml config
.Describe the results you received:
with
name
attribute:when commenting out
name
attribute:(I've commented out
version
attribute in my compose file)Describe the results you expected:
It should build the images. And when using
docker-compose up
the container group should have specifiedname
.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker compose version
:Output of
docker info
:Additional environment details:
OS: Mac OS v10.14.6 (Mojave)
The text was updated successfully, but these errors were encountered: