Closed
Description
Description
Using the latest release version (2.4.0) to test the new ssh agent build capabilities. It works when I build
directly but not when the container is built as part of up
.
Steps to reproduce the issue:
- Have an image that requires ssh agent (previously had to be built using
DOCKER_BUILDKIT=1 docker build --ssh default ...
) - Changed the compose file to include the new ssh entry (
ssh: ["default"]
) - Clean my docker repo of any images/containers
- Bring my stack up with
docker compose up -d service
Describe the results you received:
It fails building the container that required ssh agent pass-through. It however works if I build that container first with docker compose build service
)
Describe the results you expected:
Expected everything to be properly built and the stack brought up.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker compose version
:
Docker Compose version v2.4.0
Output of docker info
:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
compose: Docker Compose (Docker Inc., v2.4.0)
scan: Docker Scan (Docker Inc., v0.12.0)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 4
Server Version: 20.10.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
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 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: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
cgroupns
Kernel Version: 5.16.15-76051615-generic
Operating System: Pop!_OS 21.10
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 15.55GiB
Name: pop-os
ID: JLP4:YKBY:FIYH:57QZ:XM7Z:32AF:IWCG:7XCO:UDH4:F3BW:LCNJ:5JUG
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
Metadata
Metadata
Assignees
Labels
No labels