Description
Description
After upgrading to Docker Compose 2.30, I'm running into an issue where '-' is no longer seemingly accepted as a valid alias for reading from stdin.
Steps To Reproduce
- Run
docker compose --file - up -d
- See error about not being able to open the file
-
in the current directory
Compose Version
Docker Compose version 2.30.0
Docker Compose version 2.30.0
Docker Environment
Client:
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.17.1
Path: /usr/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: 2.30.0
Path: /usr/lib/docker/cli-plugins/docker-compose
Server:
Containers: 45
Running: 44
Paused: 0
Stopped: 1
Images: 77
Server Version: 27.3.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 57f17b0a6295a39009d861b89e3b3b87b005ca27.m
runc version:
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.6.58-1-lts
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 62.18GiB
Name: andromeda
ID: 6WJ7:VZ23:KMIX:YN3K:CWPS:WCCQ:CBHH:SIGF:VNAW:AONR:7YYV:XI55
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Anything else?
I have a rather large compose project for my home server here: https://github.com/Pyxxil/HomeServer, which uses awk to push a bunch of compose files into one that is read via stdin to docker compose (see the docker.sh script).
I will admit this is probably not the best way to have done compose, so if this is not a bug/regression I will deal with changing how I do this.
Activity