-
Notifications
You must be signed in to change notification settings - Fork 481
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
Error using docker-container (remote) builder context. How is connecting to a remote $DOCKER_HOST supported? #2564
Comments
Oh I believe I conflated the two concepts of From this I'm interested in the part that says
How can one use a context to maintain a connection to a remote |
If you use You probably meant If you do have docker context created already on ssh endpoint then you don't need to set the ssh address again on |
So how does one achieve a persistent ssh connection to a remote |
#1293 and your advice helped me understand that my command should be
Then I make my build calls with I also observe some wait times reaching 1s with Is there any way for me to set up some kind of proxy that maintains a conn with my remote builder and basically multiplex it through the local UD socket to my local build calls? Can the |
If you wish for your ssh connection to not drop after buildx/docker exist then that is controlled by your SSH config. Usually smth like
First google link: https://www.cyberciti.biz/faq/linux-unix-reuse-openssh-connection/ |
Contributing guidelines
I've found a bug and checked that ...
Description
I would like to create and connect to a
docker-container
builder through SSH (with custom port) or TCP. I use a builder in the hope that it'll negotiate the connection only once, keeping it up until I remove it.I created a builder with this command (
ssh tstr
works on my machine and using this Docker daemon via$DOCKER_HOST=ssh://tstr
works):Expected behaviour
Actual behaviour
λ DOCKER_CONTEXT=tstr DOCKER_BUILDKIT=1 docker build -o=/usr/local/bin --platform=local --build-arg PREBUILT=1 https://github.com/FuzzyMonkeyCo/monkey.git Failed to initialize: unable to resolve docker endpoint: context "tstr": context not found: open /home/pete/.docker/contexts/meta/e9f2766a13abc9322b028c93c5a9949fc9f49b2f99d69f1ef26feadf0c86a9c3/meta.json: no such file or directory
λ DOCKER_CONTEXT=tstr docker images Failed to initialize: unable to resolve docker endpoint: context "tstr": context not found: open /home/pete/.docker/contexts/meta/e9f2766a13abc9322b028c93c5a9949fc9f49b2f99d69f1ef26feadf0c86a9c3/meta.json: no such file or directory
Buildx version
github.com/docker/buildx v0.15.1 1c1dbb2
Docker info
Builders list
Configuration
Build logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: