You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uname -v
Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
Use the above Dockerfile, in the traditional manner, and expect ssh-add to fail:
# docker build -f Dockerfile-failing-ssh-agent-test .
Sending build context to Docker daemon 25.6kB
Step 1/4 : FROM ubuntu
---> 2ca708c1c9cc
Step 2/4 : RUN apt-get update && apt-get install -y openssh-client
---> Using cache
---> 7be5e7cad803
Step 3/4 : RUN ssh-add -l 2>&1 | tee -a /tmp/ssh-agent.out || true
---> Running in 4e1653d22fd5
Could not open a connection to your authentication agent.
Removing intermediate container 4e1653d22fd5
---> 3e1669b2788f
Step 4/4 : RUN cat /tmp/ssh-agent.out
---> Running in f91c66ca745e
Could not open a connection to your authentication agent.
Removing intermediate container f91c66ca745e
---> 4183437ddc5d
Successfully built 4183437ddc5d
Add new RUN style command -- which is unsupported unless both DOCKER_BUILDKIT=1 && --ssh default are used.