Public | Automated Build

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

docker-secure-api

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

Add:

DOCKER_OPTS=" -H tcp://172.17.42.1:4243 -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
Owner
listerine
Source Repository

Comments (0)