Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh url not recognized for cloning git repo ssh://git@git.xxxx.yyy:2222/yyyy/dddddd #4418

Closed
llgcode opened this issue Nov 14, 2023 · 2 comments

Comments

@llgcode
Copy link

llgcode commented Nov 14, 2023

Hello,
The issue is:

docker build ssh://git@git.xxxx.yyy:2222/yyyy/dddddd.git
unable to prepare context: path "ssh://git@git.xxxx.yyy:2222/yyyy/dddddd.git" not found

When settting a private repo with custom port (not 22 here 2222) the only way to clone it is using this syntax above.
But it is not recognize as a git url to be cloned.
Is there a way to tell the builder that it is actually a git repo url for git clone command.

thanks for your help

docker version
Client:
Version: 20.10.24
API version: 1.41
Go version: go1.19.9
Git commit: 297e1284d3bd092e9bc96076c3ddc4bb33f8c7ab
Built: Wed May 3 07:00:19 2023
OS/Arch: linux/arm64
Context: default
Experimental: true

Server:
Engine:
Version: 20.10.24
API version: 1.41 (minimum version 1.12)
Go version: go1.19.8
Git commit: 5d6db842238e3c4f5f9fb9ad70ea46b35227d084
Built: Tue Apr 11 07:26:55 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: v1.6.18
GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640
runc:
Version: 1.1.5
GitCommit: f19387a6bec4944c770f7668ab51c4348d9c2f38
docker-init:
Version: 0.19.0
GitCommit:

github.com/moby/buildkit eeb7b65 # v0.8.4-0.20221020190723-eeb7b65ab7d6

@jedevc
Copy link
Member

jedevc commented Nov 14, 2023

Your version of buildkit isn't very recent - I'd recommend updating it to a more recent version, there's been lots of changes to the parsing of Git URLs.

If the issue still persists in the v0.12 release, then this is likely related to (and would be resolved by) #4142, which isn't yet in a released buildkit.

@llgcode
Copy link
Author

llgcode commented Nov 14, 2023

Ok thank I will update my docker if possible. I will check when this issue will be available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants