This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Description
Each run of my script create new file in /tmp folder with my cert and private key that i use to connect to docker api. If omitt security issue, there is problem with running out of inodes.
My script can by pretty simple:
$client = DockerClient::createWithEnv();
$docker = new Docker($client);
DOCKER_TLS_VERIFY = 1
DOCKER_PEER_NAME = "docker.myserver.dev"
DOCKER_HOST = "tcp://192.168.1.1:2376"
DOCKER_CERT_PATH = /etc/myapp/