Docker is stripping quotation marks around my env vars but I need them.
My input via UI is:
TAG_RULE='[{ "foo": [ "value" ], "tags": [{ "key": "key1", "value": "value1"}, { "key": "key2", "value": "value2"}]}]' ANNOTATION_TYPE="annotation type here..."
/usr/bin/docker run --volume /opt/bamboofiles/xml-data/build-dir/FP-PLAN-SKE:/data --workdir /data --rm -e TAG_RULE=[{ "foo": [ "value" ], "tags": [{ "key": "key1", "value": "value1"}, { "key": "foo2", "value": "value2"}]}] -e ANNOTATION_TYPE=annotation type here... myOrg/myContainer:v1
Which obviously fails due to the spaces in the env vars...
I've tried mixing single quotes and double quotes. I've also tried escaping them but they all get removed.
What's the solution here?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.