Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


A container for proxying connections to a docker API over ssl with cert based auth


DOCKER_OPTS=" -H tcp:// -H unix:///var/run/docker.sock"

to your /etc/default/docker file

To run:
Mount the directory containing the key and crt you want to use with nginx

docker run -d -p 4242:4242 -v /opt/docker_daemon_ssl:/etc/nginx/certs --name daemon_proxy listerine/docker-secure-api:latest

To generate the servers cert and key you can use these instructions:

mkdir /opt/docker_daemon_ssl

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /opt/docker_daemon_ssl/server.key -out /opt/docker_daemon_ssl/server.crt

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /opt/docker_daemon_ssl/client.key -out /opt/docker_daemon_ssl/client.crt

Docker Pull Command
Source Repository