Docker: docker-compose: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Today, I started to try some stuff with Docker, after install docker-engine complete smoothly. Next to install docker-compose, I recently got very annoying error on my Ubuntu 16.04 machine. Follow the instruction at https://docs.docker.com/compose/install/ , right on the step 7, after the install complete, I try to test it by command

But instead of showing the version, it throw error with message

docker-compose

After some minutes searching on Google, I find out it missing exec permission on /tmp folder. So, I remount the /tmp folder with exec permission and it work perfectly. You can do by follow the command below.

Source : https://github.com/docker/compose/issues/1339#issuecomment-196971221

2 thoughts on “Docker: docker-compose: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Leave a Reply