-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
Description
Compose 2.4.0/2.4.1 does not allow uppercase characters. This is visible when we create a new project using COMPOSE_PROJECT_NAME with uppercase, the name visible with docker-compose ls will be lowercase, and no other commands will be used except docker-compose down (I can't explain why we have strings.ToLower() only on this command).
Steps to reproduce the issue:
COMPOSE_PROJECT_NAME=AAAA-bbbb docker-compose up -dCOMPOSE_PROJECT_NAME=AAAA-bbbb docker-compose psCOMPOSE_PROJECT_NAME=aaaa-bbbb docker-compose ps
Describe the results you received:
Nothing displayed on step 2. but yes in step 3.
Describe the results you expected:
The step 2. should return the container list but not 3.
Additional information you deem important (e.g. issue happens only occasionally):
This issue is not available on v2.3.4
Output of docker compose version:
Docker Compose version v2.4.1
Output of docker info:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.8.2)
compose: Docker Compose (Docker Inc., v2.4.1)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.17.0)
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 3
Server Version: 20.10.14
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.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
runc version: v1.0.3-0-gf46b6ba
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.10.16.3-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 7.676GiB
Name: docker-desktop
ID: YK6L:HSDW:ZL45:TJHA:MRX6:4FWY:CCCN:UWEG:ORIQ:VMGW:VGPV:KXSA
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5000
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
Additional environment details:
Running in WSL2 but issue also seen in our CI using DIND.