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

fix: make EnvAPIClient and docker-cli have same behavior towards env DOCKE… #8939

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

terloo
Copy link

@terloo terloo commented Jul 9, 2023

Description

User will usually enable https when using docker-cli command line call remote docker-server.

But in skaffold, it will not enable TLS even user has env named DOCKER_TLS_VERIFY when get imageId from docker-server, that is different to behavior of docker-cli.

It cause a problem that people get a error Error response from daemon: Client sent an HTTP request to an HTTPS server. after they completed their docker-cli config and make useDockerCLI: true.

User facing changes (remove if N/A)
When env DOCKER_TLS_VERIFY is not null, docker api client will enable TLS and read TLS file by order.

Follow-up Work (remove if N/A)

Maybe we should update the document?

@google-cla
Copy link

google-cla bot commented Jul 9, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented Jul 9, 2023

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@terloo terloo changed the title make EnvAPIClient and docker-cli have same behavior towards env DOCKE… fix: make EnvAPIClient and docker-cli have same behavior towards env DOCKE… Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant