title: Docker based tomcat webapp fails only on MacOS
body: <p>We have dockerized our webapp. The app was working as expected on all platforms - linux, mac etc.</p>
  
  <p>Recently it started failing only on Mac. The webapp fails to start because of weird NoClassDefFound/NoSuchMethodError kind of exceptions.</p>
  
  <pre><code>api     | Caused by: java.lang.NoSuchMethodError: org.apache.logging.log4j.ThreadContext.getThreadContextMap()Lorg/apache/logging/log4j/spi/ReadOnlyThreadContextMap;
  api     |   at org.apache.logging.log4j.core.impl.ContextDataInjectorFactory.createDefaultInjector(ContextDataInjectorFactory.java:83)
  api     |   at org.apache.logging.log4j.core.impl.ContextDataInjectorFactory.createInjector(ContextDataInjectorFactory.java:67)
  api     |   at org.apache.logging.log4j.core.lookup.ContextMapLookup.&lt;init&gt;(ContextMapLookup.java:34)
  api     |   at org.apache.logging.log4j.core.lookup.Interpolator.&lt;init&gt;(Interpolator.java:117)
  api     |   at org.apache.logging.log4j.core.config.AbstractConfiguration.&lt;init&gt;(AbstractConfiguration.java:125)
  api     |   at org.apache.logging.log4j.core.config.NullConfiguration.&lt;init&gt;(NullConfiguration.java:32)
  api     |   at org.apache.logging.log4j.core.LoggerContext.&lt;clinit&gt;(LoggerContext.java:77)
  api     |   at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:171)
  api     |   at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:145)
  api     |   at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:70)
  api     |   at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:57)
  api     |   at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:147)
  api     |   at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
  api     |   at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
  api     |   at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
  </code></pre>
  
  <p>The same docker image when started on Centos works perfectly fine.</p>
  
  <p>We are completely clueless of this behavior. Any insights are greatly appreciated.</p>
  
  <p>Docker Version on Mac</p>
  
  <p>Version:      17.09.0-ce
  API version:  1.32</p>
  
  <p>Docker version on Centos</p>
  
  <p>Version:      1.12.6
   API version:  1.24</p>