Docker Compose:无法运行ssh:无此类文件或目录 [英] Docker Compose: cannot run ssh: No such file or directory

查看:360
本文介绍了Docker Compose:无法运行ssh:无此类文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用docker-compose从其git存储库中获取,构建和运行多个服务。我做了一个简单的docker-compose.yml对其进行测试:

I'm trying to use docker-compose to fetch, build and run multiple services from their git repositories. I made a simple docker-compose.yml to test it:

version: '3'

services:
  test-service:
    build: git@gitlab.com:dan-poltherm/partservicego.git
    ports:
      - 8005:443

似乎docker-compose无法获取存储库,调用 docker-compose up时出现以下错误- -build

It seems that docker-compose can't fetch repository I get following error when calling docker-compose up --build:

ERROR: error fetching: fatal: cannot run ssh: No such file or directory

我已安装OpenSSH Client(Windows 10端口)和%SYSTEMROOT%\ \System32\OpenSSH\ 已添加到PATH,我还将 GIT_SSH 设置为 C:\Windows\System32 \OpenSSH\ssh.exe 。我可以使用 git clone ssh 克隆仓库,也可以在powershell中使用。

I have OpenSSH Client installed (Windows 10 port) and %SYSTEMROOT%\System32\OpenSSH\ added to PATH, I also set GIT_SSH to C:\Windows\System32\OpenSSH\ssh.exe. I can clone repo with git clone and ssh also works from powershell.

推荐答案

个人访问令牌是一种方法

这篇关于Docker Compose:无法运行ssh:无此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆