Container Apps error on no-new-privileges

Guilherme Goncalves 45 Reputation points
2023-05-22T20:09:41.58+00:00

Hi,

i am up a container app for image dpage/pgadmin4 and set the variables PGADMIN_DEFAULT_EMAIL, PGADMIN_DEFAULT_PASSWORD but i have a output in logs:

sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

how can i get around this problem?

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
316 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZHAO WEIYU 0 Reputation points
    2024-04-10T02:31:36.7833333+00:00

    Hi,

    You can assign another listening port by setting the environment variable PGADMIN_LISTEN_PORT to 8080 for example instead of the 80 port which requires root previlege.

    0 comments No comments