Expected behavior
Using docker buildx build with git URL specified requiring SSH should successfully source the build context from the remote repository.
Actual behavior
➜ docker buildx build git@github.com:***/***.git
[+] Building 0.3s (1/1) FINISHED
=> ERROR [internal] load git source git@github.com:***/***.git 0.3s
------
> [internal] load git source git@github.com:***/***.git:
#1 0.239 ssh -F /dev/null -o UserKnownHostsFile=/var/lib/docker/tmp/953733054: ssh: command not found
#1 0.240 fatal: Could not read from remote repository.
#1 0.240
#1 0.240 Please make sure you have the correct access rights
#1 0.240 and the repository exists.
SSH does not appear to be contained within the container running the build.
Information
- macOS Version: Mojave (10.14.6)
- Intel chip or Apple chip: Intel
- Docker Desktop Version: 3.5.2 (66501)
Steps to reproduce the behavior
- Attempt to source a docker build from an SSH git URL e.g.
docker buildx build git@github.com:docker/buildx.git
- Note the error
ssh -F /dev/null -o UserKnownHostsFile=/var/lib/docker/tmp/544077690: ssh: command not found
This was discussed on the community slack here
Expected behavior
Using
docker buildx buildwith git URL specified requiring SSH should successfully source the build context from the remote repository.Actual behavior
SSH does not appear to be contained within the container running the build.
Information
Steps to reproduce the behavior
docker buildx build git@github.com:docker/buildx.gitssh -F /dev/null -o UserKnownHostsFile=/var/lib/docker/tmp/544077690: ssh: command not foundThis was discussed on the community slack here