Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose fails when /tmp is in noexec mode #6990

Closed
Bewi42 opened this issue Oct 30, 2019 · 2 comments
Closed

docker-compose fails when /tmp is in noexec mode #6990

Bewi42 opened this issue Oct 30, 2019 · 2 comments

Comments

@Bewi42
Copy link

Bewi42 commented Oct 30, 2019

Description of the issue

docker-compose fails to run when /tmp is in noexec mode.

Context information (for bug reports)

/tmp is mounted in noexec mode
Output of docker-compose version

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

Output of docker version

Client:
 Version:         1.13.1
 API version:     1.26
 Package version: docker-1.13.1-94.gitb2f74b2.el7.x86_64
 Go version:      go1.10.8
 Git commit:      b2f74b2/1.13.1
 Built:           Mon Feb 25 14:45:39 2019
 OS/Arch:         linux/amd64

Server:
 Version:         1.13.1
 API version:     1.26 (minimum version 1.12)
 Package version: docker-1.13.1-94.gitb2f74b2.el7.x86_64
 Go version:      go1.10.8
 Git commit:      b2f74b2/1.13.1
 Built:           Mon Feb 25 14:45:39 2019
 OS/Arch:         linux/amd64
 Experimental:    false

Output of docker-compose config
(Make sure to add the relevant -f and other flags)

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

Steps to reproduce the issue

  1. install docker-compose
  2. run docker-compose

Observed result

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

Expected result

docker-compose should run even if /tmp is in noexec mode.

Stacktrace / full error message

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

Additional information

No workaround will be accepted. Many software manage to run even if /tmp is in noexec. Why not docker-compose ?

@mk-pmb
Copy link

mk-pmb commented Nov 20, 2019

I'm having the same issue again, and meanwhile I had forgotten the #1339 work-around. Is it quick to fix? If not, could we put a more helpful error message that reminds users of the work-around?

@ulyssessouza
Copy link
Collaborator

#1339 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants