Replies: 1 comment
-
Update: I managed to get it working, though I don't understand why. If I run If, however, I run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Description
I am trying to run a localhost PHP API which uses the GD extension to do draw some images.
I installed the necessary dependencies and installed, configured and enabled GD, but the PHP installation inside my Podman container doesn't have GD enabled.
However, when I send a request to my API using Postman, it returns this error:
Steps to reproduce the issue
imagecreatetruecolor()
podman build -t my-container .
)podman start my-container
)Describe the results you received
Running
podman exec -it php-server bash
and then typingphp -i | grep -i gd
yields no result (= GD it not enabled, as confirmed by the error returned by the API when I try to send a request to it - see issue description).Describe the results you expected
The Podman PHP container should have correctly set up an Apache environment with PHP having the GD extension enabled.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
podman build -t php-server
output: build.logThe log warns that gd is already installed when I try to enable it, but it's definitely not. When I try to look up the extension inside the Podman container, the destination folder for the extension has no gd. It looks like gd.so is being stripped after installation, though I don't understand why or how to prevent it.
Additional information
I've tried using different images (e.g., php:8.2-apache, php:8.3-apache, php:8.3-fpm (with apache2 installed separately), php:8.3-alpine). The issue seems more connected with the way the extension itself is being installed.
Also, not sure if relevant, but my laptop is using the Intel Core 9 Ultra 185h CPU. Maybe it's tied to CPU architecture in some way?
Beta Was this translation helpful? Give feedback.
All reactions