thecodingmachine / docker-images-php

A set of PHP Docker images
MIT License
768 stars 137 forks source link

Docker fails when using non-privileged user #373

Closed sanhofman closed 6 months ago

sanhofman commented 8 months ago

Current Behavior

When using a non-privileged user while working with K8s we encounter fatal errors on PHP startup.

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

Error: Can't drop privilege as nonroot user

Expected Behavior

To run properly as non-privileged user.

Possible Solution

I see a lot of sudo commands in the base image, probably related with above errors?

Steps to Reproduce (for bugs)

FROM thecodingmachine/php:8.2-v4-fpm-node18

ENV DOCKER_USER="www-data"

How can this be reslolved?

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.

stale[bot] commented 6 months ago

This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.