Skip to content

rjm11010/setup_tls_for_docker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Setup TLS for Docker

You need to run these commands to setup part of the process that's currently not automated.

You can find these instructions partially at the following link.

# After the first command you need to copy and past the contents of docker_deamon_settings.conf in the docker.service file
sudo systemctl edit docker.service
sudo systemctl daemon-reload
sudo systemctl restart docker.service

Then you need to modify your .bashrc, zshrc or whatever shell you're using. Add This to the end of your *rc file

#######################################################
# Docker
#######################################################

export COMPOSE_TLS_VERSION=TLSv1_2
export DOCKER_HOST=tcp://localhost:2376 DOCKER_TLS_VERIFY=1

About

How I setup TLS for Docker. I needed to do this to enable TLS communication between containers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages