title: docker compose: Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted
body: <p>After installing <strong>docker</strong> and <strong>docker-compose</strong> on:</p>
  
  <pre class="lang-sh prettyprint-override"><code>NAME="Red Hat Enterprise Linux Server"
  VERSION="7.6 (Maipo)"
  </code></pre>
  
  <p>When executing:</p>
  
  <pre><code>sudo docker-compose -version
  </code></pre>
  
  <p>It returns: </p>
  
  <p><code>Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted</code></p>
  
  <p>It should return:</p>
  
  <pre><code>docker-compose version 1.25.0-rc2, build 661ac20e
  </code></pre>
  
  <p>Installation from docker-compose is <a href="https://docs.docker.com/compose/install/" rel="noreferrer">this</a></p>