sstarcher / docker-sensu

Dockerized Sensu - Client, Server, Api
MIT License
103 stars 72 forks source link

Interpret backslash literal newlines for env-supplied SSL info #36

Closed erikmack closed 7 years ago

erikmack commented 7 years ago

The -e allows me to pass multiline cert info in --env or --env-file arguments to docker run. Without passing explicit \n the SSL load fails.

The escaped \n is necessary to pass multiline arguments to --env. Ideally an --env-file could have actual newlines in cert info but docker's env-file handling is defective and the devs won't fix it [1], advising to use -e instead.

Thanks for this container!

[1] https://github.com/docker/docker/issues/12997#issuecomment-101083177

sstarcher commented 7 years ago

Thanks for the PR