-
Notifications
You must be signed in to change notification settings - Fork 522
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
Wrong DOCKER_HOST config when using docker.host configuration #649
Comments
changing https://github.com/Microsoft/vscode-docker/blob/4d7b773fabd8c210ff7392bcc1daffc66b862004/commands/utils/TerminalProvider.ts#L20 from |
same here, thanks for the workaround! |
Hey @ntcong, you are correct. Looking at how the host prefix is used by the upstream library (docker-modem), there seem to be multiple allowed protocols. I don't think it's appropriate for us to make assumptions about wanting a tcp connection. We'll look into making this more visible. |
setting docker.host to tcp://host:port does not work for me. source from docker-modem var parsed = url.parse(self.host);
address = url.format({
'protocol': parsed.protocol || self.protocol,
'hostname': parsed.hostname || self.host,
'port': self.port
});
address = url.resolve(address, options.path); when host is DockerClient::refreshEndpoint, the errorMessage defind is 'The docker.host configuration setting must be entered as :, e.g. dockerhost:2375' IMO, |
vscode-docker tell me to set docker.host in the format <ip>:<port>. When using Docker build image command, it'll set DOCKER_HOST = docker.host config.
DOCKER_HOST config should be tcp://<ip>:<port>. Using <ip>:<port> will result in an error:
parse <ip>:<port>: first path segment in URL cannot contain colon
The text was updated successfully, but these errors were encountered: