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

[RESOLVED] php:7.4-apache / php:8.0-apache: "ls: cannot access '.': Operation not permitted" #1192

Closed
nhalstead opened this issue Aug 19, 2021 · 3 comments

Comments

@nhalstead
Copy link

nhalstead commented Aug 19, 2021

Hello,

I am having an issue that started recently (see error below). This hasn't been an issue until this recent week.

Here is a slice of the docker image I am using the creates the same issue:

https://github.com/nhalstead/php-apache-core/blob/main/7.4/Dockerfile

Circle CI Pipeline Output
...
Processing triggers for mailcap (3.69) ...
 ---> 2727f810539c
Removing intermediate container 92b8aa32968c
Step 8/21 : RUN docker-php-ext-install gd zip pdo mysqli pdo_mysql opcache
 ---> Running in be480909634e
Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
ls: cannot access '.': Operation not permitted
configure: error: working directory cannot be determined
The command '/bin/sh -c docker-php-ext-install gd zip pdo mysqli pdo_mysql opcache' returned a non-zero code: 2

Exited with code exit status 2
CircleCI received exit code 2

This all executes in a Circle CI pipeline, I don't get issues running it on my local machine but I did notice a difference in the Zend extension numbers: (even after trying to pull the latest docker image)

Local Machine Output

Screenshot from 2021-08-19 14-04-52


If you have any ideas, I'd appreciate them.

Thanks

@yosifkit
Copy link
Member

I am fairly certain this is basically a duplicate of #1177 but for the now released Debian Bullseye based images. So you can try using FROM php:7.4-apache-buster to keep using the Debian Buster based images. Until the OS or PHP version is end of life, we keep building PHP images on two concurrent Debian releases.

If Buster works but the new Bullseye based images do not, then the OS running Docker will need a newer version of Docker, runc, and/or libseccomp to fix it.

Similar issues: docker-library/ruby#351 docker-library/python#634

@nhalstead
Copy link
Author

Problem Resolved!

Thanks for the information!


CircleCI ships with the default docker version "17.09.0-ce"

This can be fixed by setting the docker version to a later edition like so:

...
    steps:
      - setup_remote_docker:
          # The supported versions can be found here: 
          #   https://circleci.com/docs/2.0/building-docker-images/#docker-version
          version: 20.10.6

@nhalstead nhalstead changed the title php:7.4-apache / php:8.0-apache: "ls: cannot access '.': Operation not permitted" [RESOLVED] php:7.4-apache / php:8.0-apache: "ls: cannot access '.': Operation not permitted" Aug 20, 2021
@q0rban

This comment has been minimized.

q0rban added a commit to q0rban/tugboat-docker-boilerplate that referenced this issue Sep 10, 2021
@docker-library docker-library locked as resolved and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants