Docker error on CentOS with `noexec` `/tmp`

Error you get running docker: docker-compose: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted

To fix, prefix your docker command with TMPDIR defined, e.g. TMPDIR=~/tmp docker-compose ...

This article was updated on 2023-01-25

I'm nabeards.

I'm a full stack JavaScript developer.

I travel full time, a.k.a., Professional Wanderer, a.k.a., Digital Nomad.