Permalink
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?
setup_tls_for_docker/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reynaldo Morillo
Initial Commit. This is how I setup TLS on my computer.
26 lines (19 sloc)
801 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
```bash | |
# 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 | |
```bash | |
####################################################### | |
# Docker | |
####################################################### | |
export COMPOSE_TLS_VERSION=TLSv1_2 | |
export DOCKER_HOST=tcp://localhost:2376 DOCKER_TLS_VERIFY=1 | |
``` |