Skip to content

dockerd container is missing ssh #5902

Closed

Description

@Nugs
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: 517C6036-A85F-4F84-8011-18C16E3BED7C/20210811184549

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

  1. Attempt to source a docker build from an SSH git URL e.g. docker buildx build git@github.com:docker/buildx.git
  2. 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

Activity

  1. StefanScherer commented on Aug 12, 2021

    @StefanScherer
    Member

    Thanks for the report. Our engineers are looking into this and fix it in a future version.

  2. lorenrh commented on Aug 31, 2021

    @lorenrh
    Member

    Hello,

    Docker Desktop 4.0.0 has been released containing a fix for this issue, so I'm closing this issue. Feel free to open a new ticket if the problem persists.

  3. docker-robott commented on Sep 30, 2021

    @docker-robott
    Collaborator

    Closed issues are locked after 30 days of inactivity.
    This helps our team focus on active issues.

    If you have found a problem that seems similar to this, please open a new issue.

    Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
    /lifecycle locked

  4. locked and limited conversation to collaborators on Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions