App Entwicklung für Mobile, Web, Desktop

Search or grep docker logs

Normal grep and piping seems not to work for docker:

  That is normal, because docker logs internally to the standard error out, so we have to redirect the standard error output (2) to the standard output (1):

 

escaping docker environment variables

This is the solution: Using single-quotes instead of double-quotes Escape the ampersand & to \& Not escaping the exclamation mark ! e.g. docker run -i -t –rm \ -e ‚LDAP_FILTER=(\&(objectCategory=person)(objectClass=user)‘ \ -e ‚LDAP_PASS=Secret!Password‘ \ user-prefix/container-name