-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Description
As a follow up to #9216: docker compose denies creating projects with project names containing dots or uppercase letters. Looking at the compose spec, an arbitrary string can be provided as project name. There is no obvious restriction on the project name content:
https://github.com/compose-spec/compose-spec/blob/master/spec.md?plain=1#L48-L52
https://github.com/compose-spec/compose-spec/blob/master/schema/compose-spec.json#L14-L17
Steps to reproduce the issue:
- create a project with arbitrary name containing dot and/or uppercase letters
Describe the results you received:
"settings_pittsburghFL" is not a valid project name
Describe the results you expected:
Project created successfully
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker compose version:
Docker Compose version v2.6.1
Client:
Context: default
Debug Mode: false
Server:
Containers: 3
Running: 1
Paused: 0
Stopped: 2
Images: 7
Server Version: 20.10.7
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version:
runc version:
init version:
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.253-tegra
Operating System: Ubuntu 18.04.6 LTS
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 31.18GiB
Name: anon
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details: