-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: docker-workflow-plugin
-
None
Given a pipeline with a custom `DOCKER_HOST`:
Â
node {
  stage('Testing LIMA VM') {
    docker.withServer('unix:///home/user/.lima/lima-test/sock/docker.sock') {
      docker.image('jenkins/agent').inside {
        sshagent(['user_b']) {
          sh 'ssh-add -l'
        }
      }
    }
  }
}
I get this error:Â
ERROR: Failed to run ssh-agent: Error response from daemon: No such container: 85b4f32a54d1292....
Â
I've investigated the issue and I think that https://github.com/jenkinsci/docker-workflow-plugin/blob/19b84d6e042ec18c159487b59e21f9644eb14e5b/src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java#L263 should inject `DOCKER_HOST` into the `starter` envs (using the value from `envHost`)
Â
Â