Skip to content

Add DOCKER_TLS environment variable for --tls option - #863

Merged
thaJeztah merged 1 commit into
docker:masterfrom
WTFKr0:tls-env-var
Feb 6, 2018
Merged

thaJeztah merged 1 commit into
docker:masterfrom
WTFKr0:tls-env-var

Conversation

@WTFKr0

@WTFKr0 WTFKr0 commented Feb 2, 2018 •

Copy link
Copy Markdown
Contributor

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

codecov-io commented Feb 2, 2018 •

Copy link
Copy Markdown

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
Copy Markdown
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>

@dnephin dnephin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vdemeester vdemeester left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Design and Code LGTM 🐝

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

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

axel3rd commented Feb 6, 2018

Copy link
Copy Markdown

@WTFKr0: Many thanks !

@mdlinville

Copy link
Copy Markdown
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
nobiit pushed a commit to nobidev/docker-cli that referenced this pull request Nov 19, 2025
Add DOCKER_TLS environment variable for --tls option
Upstream-commit: b5df4f6
Component: cli
statelyaistate added a commit to statelyaistate/viz that referenced this pull request Jan 26, 2026
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