You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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
160
157
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.
162
159
163
160
```bash
164
161
switch-user
165
162
```
166
163
164
+
For more information, see the following Linux man pages:
0 commit comments