Hi Patrick,
This is Bowen from Azure Container Apps production group. Please use "switch-user" as replacement for this command. We will update our doc soon to reflect this change. Sorry about the confusion.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The documentation about debug containers mentions that it is possible to switch the user inside the debug container by running the following command:
switch-to-app-user
Full quote:
By default, debug console runs as root user. You can access
/proc/1
to access container's file system if your container runs as root user. If your container doesn't run as root user, run below command to switch user before accessing/proc/1
directory, or you'll get a permission denied error.
However, unfortunately, the command is not available within the debug container:
bash: switch-to-app-user: command not found
Steps to reproduce:
az containerapp debug --name [APP] --resource-group [RG]
switch-to-app-user
/proc/1/root
without errorDo I miss something?
Hi Patrick,
This is Bowen from Azure Container Apps production group. Please use "switch-user" as replacement for this command. We will update our doc soon to reflect this change. Sorry about the confusion.