Description
Debian 12
Docker 25.0.2
Compose 2.25.0
crun 1.14.4
API 1.44
With content of compose.yaml:
services:
testservice:
image: alpine:latest
annotations:
- run.oci.keep_original_groups=1
command: top
and command:
docker compose run --interactive testservice
Expected:
Annotations are passed to the docker, similar to direct run command:
docker run --tty --interactive --annotation "run.oci.keep_original_groups=1" alpine:latest top
Actual:
Annotations aren't passed.
There is no Annotations section of docker inspect <container-from-compose> output, but docker inspect <container-from-direct> has it.
I tried docker/podman, runc/crun, rootless/root full modes in any variations, the error is reproducible with any of them.
docker info
docker version
docker inspect <direct>
docker inspect <compose>
https://docs.docker.com/reference/cli/docker/container/run
https://docs.docker.com/compose/compose-file/05-services/#annotations
Steps To Reproduce
No response
Compose Version
Docker Compose version v2.25.0
Docker Environment
Client:
Version: 25.0.2
Context: rootless
Debug Mode: false
Plugins:
compose: Docker Compose (Docker Inc.)
Version: v2.25.0
Path: /home/diplane/.docker/cli-plugins/docker-compose
Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 25.0.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: false
userxattr: true
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: runc crun io.containerd.runc.v2
Default Runtime: crun
Init Binary: docker-init
containerd version: 7c3aca7a610df76212171d200ca3811ff6096eb8
runc version: a220ca661ce078f2c37b38c92e66cf66c012d9c1
init version: de40ad0
Security Options:
seccomp
Profile: builtin
rootless
cgroupns
Kernel Version: 6.1.0-18-amd64
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 11.68GiB
Name: diplane-web
ID: 4bd30d6d-c5ab-46bc-8d29-bf53e54e1035
Docker Root Dir: /home/diplane/.local/share/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Anything else?
No response
Description
Debian 12
Docker 25.0.2
Compose 2.25.0
crun 1.14.4
API 1.44
With content of
compose.yaml:and command:
docker compose run --interactive testserviceExpected:
Annotations are passed to the docker, similar to direct run command:
docker run --tty --interactive --annotation "run.oci.keep_original_groups=1" alpine:latest topActual:
Annotations aren't passed.
There is no
Annotationssection ofdocker inspect <container-from-compose>output, butdocker inspect <container-from-direct>has it.I tried docker/podman, runc/crun, rootless/root full modes in any variations, the error is reproducible with any of them.
docker infodocker versiondocker inspect <direct>docker inspect <compose>https://docs.docker.com/reference/cli/docker/container/run
https://docs.docker.com/compose/compose-file/05-services/#annotations
Steps To Reproduce
No response
Compose Version
Docker Environment
Anything else?
No response