Container Apps error on no-new-privileges

Guilherme Goncalves 45 Reputation points


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


    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