I have a docker container I want to run and hand it over some passwords. One with an exclamation mark ! and the other one with an ampersand &. So I want to run this:
docker run -i -t --rm \
-e "LDAP_FILTER=(&(objectCategory=person)(objectClass=user)" \
-e "LDAP_PASS=Secret!Password" \
user-prefix/container-name
That does not work. & gets replaced to {LDAP_FILTER} and the ! get truncated. I'm pretty sure I have to escape these. But \! and \& didn't work out.