Skip to content

Automate the process of creating the numerous certificates and keys to secure your docker daemon over TLS

License

Notifications You must be signed in to change notification settings

evan-burke/docker-WSL-tls-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORK IN PROGRESS - instead of specifying server/client on command line, automatically place TLS certs in appropriate directories for use with Docker client running within WSL, connecting to a local instance of Docker for Windows.

frntn/docker-tls-helper

One command to generate the numerous certificates and keys required to protect the Docker daemon socket.

Usage

Setup SRV_SUBJ and CLT_SUBJ environment variables and execute the script :

# old:
curl -sSL https://raw.githubusercontent.com/frntn/docker-tls-helper/master/dockertls.sh | SRV_SUBJ="/CN=remote.example.com" CLT_SUBJ="/CN=Docker Admin CLI" bash

curl -sSL https://raw.githubusercontent.com/evan-burke/docker-WSL-tls-helper/master/dockertls.sh | bash

You can additionally Setup SRV_SAN environment variable to access your docker server from multiple endpoints :

curl -sSL https://raw.githubusercontent.com/frntn/docker-tls-helper/master/dockertls.sh | SRV_SAN="DNS:docker.example.com,IP:1.1.1.1,IP:2.2.2.2" SRV_SUBJ="/CN=remote.example.com" CLT_SUBJ="/CN=Docker Admin CLI" bash

Result

Here is a screenshot of the generated ouput :

official-logo

About

Automate the process of creating the numerous certificates and keys to secure your docker daemon over TLS

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%