Skip to content

Commit ddcc5cc

Browse files
committed
fix(docs): updates docs for shell
1 parent 9ae7c4c commit ddcc5cc

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

README.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,7 @@ If you do not want to be tracked at all, see the `--no-analytics` flag below.
115115

116116
## Environment variables and configuration
117117

118-
Dozzle follows the [12-factor](https://12factor.net/) model. Configurations can use the CLI flags or environment variables. The table below outlines all supported options and their respective env vars.
119-
120-
| Flag | Env Variable | Default |
121-
| --------------------- | -------------------------- | -------------- |
122-
| `--addr` | `DOZZLE_ADDR` | `:8080` |
123-
| `--base` | `DOZZLE_BASE` | `/` |
124-
| `--hostname` | `DOZZLE_HOSTNAME` | `""` |
125-
| `--level` | `DOZZLE_LEVEL` | `info` |
126-
| `--auth-provider` | `DOZZLE_AUTH_PROVIDER` | `none` |
127-
| `--auth-header-user` | `DOZZLE_AUTH_HEADER_USER` | `Remote-User` |
128-
| `--auth-header-email` | `DOZZLE_AUTH_HEADER_EMAIL` | `Remote-Email` |
129-
| `--auth-header-name` | `DOZZLE_AUTH_HEADER_NAME` | `Remote-Name` |
130-
| `--enable-actions` | `DOZZLE_ENABLE_ACTIONS` | `false` |
131-
| `--filter` | `DOZZLE_FILTER` | `""` |
132-
| `--no-analytics` | `DOZZLE_NO_ANALYTICS` | `false` |
133-
| `--mode` | `DOZZLE_MODE` | `server` |
134-
| `--remote-host` | `DOZZLE_REMOTE_HOST` | |
135-
| `--remote-agent` | `DOZZLE_REMOTE_AGENT` | |
136-
| `--timeout` | `DOZZLE_TIMEOUT` | `10s` |
137-
| `--namespace` | `DOZZLE_NAMESPACE` | `""` |
118+
Dozzle follows the [12-factor](https://12factor.net/) model. Configurations can use the CLI flags or environment variables. See documentation at [https://dozzle.dev/guide/supported-env-vars](https://dozzle.dev/guide/supported-env-vars) for more details.
138119

139120
## Support
140121

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default defineConfig({
7272
items: [
7373
{ text: "Authentication", link: "/guide/authentication" },
7474
{ text: "Actions", link: "/guide/actions" },
75+
{ text: "Shell Access", link: "/guide/shell" },
7576
{ text: "Agent Mode", link: "/guide/agent" },
7677
{ text: "Changing Base", link: "/guide/changing-base" },
7778
{ text: "Container Names", link: "/guide/container-names" },

docs/guide/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Container Actions
44

55
# Using Container Actions
66

7-
Dozzle supports Container Actions, which allows you to `start`, `stop` and `restart` containers from within the UI in the dropdown menu. This feature is **disabled** by default and can be enabled by setting the environment variable `DOZZLE_ENABLE_ACTIONS` to `true`.
7+
Dozzle supports container actions, which allows you to `start`, `stop` and `restart` containers from the dropdown menu on the right next to the container stats. This feature is **disabled** by default and can be enabled by setting the environment variable `DOZZLE_ENABLE_ACTIONS` to `true`.
88

99
::: code-group
1010

docs/guide/shell.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Container Shell Access
3+
---
4+
5+
# Attaching and Executing Commands <Badge type="info" text="new" />
6+
7+
Dozzle supports attaching or executing commands within containers. It provides a web-based interface to interact with Docker containers, allowing users to attach to running containers and execute commands directly from the browser. This feature is particularly useful for debugging and troubleshooting containerized applications. This feature is **disabled** by default as it may pose security risks. To enable it, set the `DOZZLE_ENABLE_SHELL` environment variable to `true`.
8+
9+
::: code-group
10+
11+
```sh
12+
docker run --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle --enable-shell
13+
```
14+
15+
```yaml [docker-compose.yml]
16+
services:
17+
dozzle:
18+
image: amir20/dozzle:latest
19+
volumes:
20+
- /var/run/docker.sock:/var/run/docker.sock
21+
ports:
22+
- 8080:8080
23+
environment:
24+
DOZZLE_ENABLE_SHELL: true
25+
```
26+
27+
:::

docs/guide/supported-env-vars.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Configurations can be done with flags or environment variables. The table below
1717
| `--auth-header-email` | `DOZZLE_AUTH_HEADER_EMAIL` | `Remote-Email` |
1818
| `--auth-header-name` | `DOZZLE_AUTH_HEADER_NAME` | `Remote-Name` |
1919
| `--enable-actions` | `DOZZLE_ENABLE_ACTIONS` | `false` |
20+
| `--enable-shell` | `DOZZLE_ENABLE_SHELL` | `false` |
2021
| `--filter` | `DOZZLE_FILTER` | `""` |
2122
| `--no-analytics` | `DOZZLE_NO_ANALYTICS` | `false` |
2223
| `--mode` | `DOZZLE_MODE` | `server` |

0 commit comments

Comments
 (0)