Skip to content

Commit 338fd00

Browse files
authored
Merge pull request #126972 from v-jaswel/aca/v-jaswel_work_item_415524_20250527
[ACA] [415524] Add notes on access container file system in debug console
2 parents 32e1de6 + 8b0d165 commit 338fd00

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

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

Lines changed: 11 additions & 9 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:
@@ -127,7 +126,7 @@ az containerapp debug `
127126

128127
---
129128

130-
## Built-in tools in Debug Console
129+
## Built-in tools in the debug console
131130

132131
The following diagnostic tools are preinstalled to the debug console to help you troubleshoot issues:
133132

@@ -154,16 +153,19 @@ tdnf install -y msopenjdk-17
154153

155154
---
156155

157-
## Scenario - Accessing container's file system via Debug Console
158-
159-
By default, debug console runs as root user.
156+
## Accessing a container's file system in the debug console
160157

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)