This is reproducible on both Mac OS 13 and 14 with Docker Desktop 4.24 and 4.25 and Windows 11 WSL2 and Docker Desktop 4.24.2 and 4.25
A docker-compose.yaml file like so:
services:
system-cli:
image: docker.io/system-cli:latest
A Dockerfile like so:
ARG PHP_VERSION="8.1"
ARG DEBIAN_VERSION="bookworm"
FROM php:${PHP_VERSION}-cli-${DEBIAN_VERSION}
WORKDIR /var/www
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
And then run the following command:
docker compose run --rm system-cli composer
Output becomes:
[+] Building 0.0s (0/0) docker:default
[+] Building 0.0s (0/0) docker:default
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 2.6.5 2023-10-06 10:11:52
Usage:
command [options] [arguments]
Options:
...
Originally posted by @NiklasBr in #10620 (comment)
This is reproducible on both Mac OS 13 and 14 with Docker Desktop 4.24 and 4.25 and Windows 11 WSL2 and Docker Desktop 4.24.2 and 4.25
A docker-compose.yaml file like so:
A Dockerfile like so:
And then run the following command:
Output becomes:
Originally posted by @NiklasBr in #10620 (comment)