The Wayback Machine - https://web.archive.org/web/20260314091303/https://github.com/docker/cli/pull/863
Skip to content

Add DOCKER_TLS environment variable for --tls option#863

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

Add DOCKER_TLS environment variable for --tls option#863
thaJeztah merged 1 commit intodocker:masterfrom
WTFKr0:tls-env-var

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
MachinesWhisper added a commit to MachinesWhisper/mdLinu that referenced this pull request Jul 29, 2025
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
Adds tests
BloomBranch added a commit to BloomBranch/Automation that referenced this pull request Aug 25, 2025
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
Adds tests
japanx001 added a commit to japanx001/scoedges that referenced this pull request Sep 19, 2025
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
dmarketcalls added a commit to dmarketcalls/runcobo that referenced this pull request Nov 25, 2025
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
Adds tests
memaLuaeed added a commit to memaLuaeed/practical that referenced this pull request Jan 1, 2026
Add option to set TLS in default docker config from environment variable DOCKER_TLS, same as docker cli (docker/cli#863)
Adds tests
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