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

Can't rename the php.ini-development #1502

Open
cizordj opened this issue Mar 22, 2024 · 2 comments
Open

Can't rename the php.ini-development #1502

cizordj opened this issue Mar 22, 2024 · 2 comments

Comments

@cizordj
Copy link

cizordj commented Mar 22, 2024

I can't rename the file php.ini-development to php.ini on a fresh container.

2024-03-22_16-42

All of our images have the following command in their Dockerfiles and fail upon build.

RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

My system info:

Debian bookworm (stable) 6.1.76-1
Linux 6.1.0-18-amd64
Docker version 26.0.0, build 2ae903e

I am using docker-ce from the official website

deb http://download.docker.com/linux/debian bookworm stable
@tianon
Copy link
Member

tianon commented Mar 22, 2024

I can't reproduce -- my best guess is that you need to update libseccomp2 and/or Docker and runc on your host. 🙈

$ docker run -it --rm --pull=always php:8.1-cli-alpine sh
8.1-cli-alpine: Pulling from library/php
Digest: sha256:daa8116f07820115b0b2fcd38aeb10d25cd7a1667cc1c279e2045fa4059e38d3
Status: Image is up to date for php:8.1-cli-alpine
/ # mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
/ # 

@cizordj
Copy link
Author

cizordj commented Mar 22, 2024

My libseccomp2 is updated and I can't install runc because it removes my docker package.

I did the same command as you did.

% docker run -it --rm --pull=always php:8.1-cli-alpine sh

8.1-cli-alpine: Pulling from library/php
Digest: sha256:daa8116f07820115b0b2fcd38aeb10d25cd7a1667cc1c279e2045fa4059e38d3
Status: Image is up to date for php:8.1-cli-alpine
/ # mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
mv: can't rename '/usr/local/etc/php/php.ini-production': Invalid argument 

I am open for more suggestions 😄

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

No branches or pull requests

2 participants