1.1.5 • Published 7 years ago

dockerode-optionator v1.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

dockerode-optionator

normalize docker-related environment variables for dockerode's connection object

#normalizeOptions()
  passing in nothing
    ✓ defaults to default socket path (/var/run/docker.sock)
  using environment variables DOCKER_IP and DOCKER_PORT
    ✓ returns expected dockerode connection structure
  using environment variable DOCKER_HOST
    ✓ understands http://127.0.0.1:4243
    ✓ understands unix:///var/run/docker.sock
    ✓ understands /var/run/docker.sock
    ✓ understands tcp://127.0.0.1:4243
  loading certs
    ✓ loads certs if DOCKER_CERT_PATH valid
    ✓ ignores if DOCKER_CERT_PATH is invalid
    ✓ ignores if DOCKER_CERT_PATH is not set


9 passing (18ms)