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

Add DOCKER_TLS environment variable for --tls option #863

Merged
merged 1 commit into from
Feb 6, 2018

Conversation

WTFKr0
Copy link
Contributor

@WTFKr0 WTFKr0 commented Feb 2, 2018

fixes #760

- What I did
Add a new env var (DOCKER_TLS) for --tls option

- How I did it
The same way as the --tlsverify option (DOCKER_TLS_VERIFY env var)

- How to verify it
DOCKER_TLS=1 docker ps return same response as docker --tls ps

- A picture of a cute animal (not mandatory but encouraged)
image

@codecov-io
Copy link

codecov-io commented Feb 2, 2018

Codecov Report

Merging #863 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #863   +/-   ##
=======================================
  Coverage   52.93%   52.93%           
=======================================
  Files         245      245           
  Lines       15848    15848           
=======================================
  Hits         8389     8389           
  Misses       6905     6905           
  Partials      554      554

@thaJeztah
Copy link
Member

design LGTM; can you also update https://github.com/docker/cli/blob/master/docs/reference/commandline/cli.md to mention the new environment variable, and squash your commits?

ping @dnephin

Signed-off-by: WTFKr0 <thomas.kovatchitch@gmail.com>
Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design and Code LGTM 🐝

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit b5df4f6 into docker:master Feb 6, 2018
@GordonTheTurtle GordonTheTurtle added this to the 18.03.0 milestone Feb 6, 2018
@axel3rd
Copy link

axel3rd commented Feb 6, 2018

@WTFKr0: Many thanks !

@mdlinville
Copy link
Contributor

@gbarr01 FYI when this goes into CE.

@WTFKr0 WTFKr0 deleted the tls-env-var branch February 7, 2018 08:11
mtatheonly added a commit to mtatheonly/source-to-image that referenced this pull request Feb 10, 2020
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
mtatheonly added a commit to mtatheonly/source-to-image that referenced this pull request Feb 12, 2020
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
Adds tests
mrhyperbit23z0d added a commit to mrhyperbit23z0d/YfCloudKitp that referenced this pull request Jun 6, 2022
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
Adds tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allowing TLS non-verify by environment variable
8 participants