You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a ssh-based DOCKER_HOST, e.g. ssh://docker@127.0.0.1, expect skaffold to work if 'docker' CLI works.
The broader goal is to allow using a remote server, e.g. running on a GCP instance, as the execution context for development, without the performance or ergonomic overhead of a container registry.
Actual behavior
Even though 'docker' CLI tool works, skaffold's set up of the docker API calls use a dummy hostname, which then fails, e.g. http://docker.example.com/v1.44/version
The specific failure on my system looks like:
build [my_image] failed: invalid character '<' looking for beginning of value, which is due to receiving an HTML response for http://docker.example.com from my ISP AT&T's DNS failure interceptor, and then the ServerVersion() API attempts to parse the HTML as JSON.
Without the DNS, the error is instead error during connect: Get "http://docker.example.com/v1.44/version": dial tcp: lookup docker.example.com: no such host
Information
Skaffold version: v2.12.0. Also tried with latest from git.
Operating system: macOS
Installed via: Brew, git
Contents of skaffold.yaml: N/A
Steps to reproduce the behavior
Get a ssh-based DOCKER_HOST, e.g. from minikube -p $MINIKUBE_PROFILE docker-env --ssh-host=true on another machine
Ensure ssh is set up, e.g. ssh-add ~/.minikube/machines/$MINIKUBE_PROFILE/id_rsa
…ng an SSH DOCKER_HOST (#9521)
Summary: Fixes#9484
Test Plan: Tested skaffold over a ssh connection to minikube.
This was tested with and without #9512 in place.
Expected behavior
When setting a ssh-based DOCKER_HOST, e.g.
ssh://docker@127.0.0.1
, expectskaffold
to work if 'docker' CLI works.The broader goal is to allow using a remote server, e.g. running on a GCP instance, as the execution context for development, without the performance or ergonomic overhead of a container registry.
Actual behavior
Even though 'docker' CLI tool works, skaffold's set up of the docker API calls use a dummy hostname, which then fails, e.g.
http://docker.example.com/v1.44/version
The specific failure on my system looks like:
build [my_image] failed: invalid character '<' looking for beginning of value
, which is due to receiving an HTML response for http://docker.example.com from my ISP AT&T's DNS failure interceptor, and then theServerVersion()
API attempts to parse the HTML as JSON.Without the DNS, the error is instead
error during connect: Get "http://docker.example.com/v1.44/version": dial tcp: lookup docker.example.com: no such host
Information
Steps to reproduce the behavior
minikube -p $MINIKUBE_PROFILE docker-env --ssh-host=true
on another machinessh-add ~/.minikube/machines/$MINIKUBE_PROFILE/id_rsa
ssh -v -l docker -p $MINIKUBE_SSH_PORT -- 127.0.0.1
docker images
ordocker version
skaffold dev
The text was updated successfully, but these errors were encountered: