Skip to content

Commit 32d73c1

Browse files
committed
[ACA] [415524] Add notes on access container file system in debug console.
1 parent 32e1de6 commit 32d73c1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/container-apps/container-debug-console.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
title: Connect to a container debug console in Azure Container Apps
33
description: Connect to a container debug console in your container app.
44
services: container-apps
5-
author: fangjian0423
5+
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.custom: devx-track-azurecli
88
ms.topic: how-to
9-
ms.date: 09/18/2024
10-
ms.author: fangjimmy
9+
ms.date: 05/29/2025
10+
ms.author: cshoe
1111
---
1212

13-
1413
# Connect to a container debug console in Azure Container Apps
1514

1615
Azure Container Apps platform offers a debugging console to help you troubleshoot your application under the following circumstances:
@@ -156,14 +155,17 @@ tdnf install -y msopenjdk-17
156155

157156
## Scenario - Accessing container's file system via Debug Console
158157

159-
By default, debug console runs as root user.
160-
161-
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.
158+
By default, the debug console runs as the root user. You can access your container's file system through the `/proc/1/cwd/` directory. If your container doesn't run as the root user, run the following command before accessing the `/proc/1/cwd/` directory, or you'll get a permission denied error.
162159

163160
```bash
164161
switch-user
165162
```
166163

164+
For more information, see the following Linux man pages:
165+
166+
- [pid_namespaces](https://www.man7.org/linux/man-pages/man7/pid_namespaces.7.html)
167+
- [/proc/pid/cwd](https://www.man7.org/linux/man-pages/man5/proc_pid_cwd.5.html)
168+
167169
---
168170

169171
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)