mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 06:28:42 +01:00
28 lines
695 B
Markdown
28 lines
695 B
Markdown
---
|
|
title: Container Actions
|
|
---
|
|
|
|
# Using Container Actions
|
|
|
|
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`.
|
|
|
|
::: code-group
|
|
|
|
```sh
|
|
docker run --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle --enable-actions
|
|
```
|
|
|
|
```yaml [docker-compose.yml]
|
|
services:
|
|
dozzle:
|
|
image: amir20/dozzle:latest
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
DOZZLE_ENABLE_ACTIONS: true
|
|
```
|
|
|
|
:::
|