TIP: How to Pass Additional System Property to CATALINA_OPTS to OpenAM Docker Container - OpenIdentityPlatform/OpenAM GitHub Wiki

Sometimes it is necessary to append a new system property to existing CATALINA_OTPS environment variable, for example -DXUI.enable=false

You could do this with the following command:

docker run --rm -h openam.example.org -p 8080:8080 --network openam --name openam openidentityplatform/openam \
 "sh" "-c" "CATALINA_OPTS=\"\$CATALINA_OPTS -DXUI.enable=false\" && /usr/local/tomcat/bin/catalina.sh run"