Skip to content
How I setup TLS for Docker. I needed to do this to enable TLS communication between containers.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
docker_deamon_settings.conf
setup_docker_tls.sh

README.md

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
You can’t perform that action at this time.