mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-10-04 23:33:07 +08:00
35 lines
658 B
Markdown
35 lines
658 B
Markdown
---
|
|
title: Auto Updates
|
|
---
|
|
|
|
## Docker Compose
|
|
|
|
With Docker Compose WireGuard Easy can be updated with a single command:
|
|
|
|
Replace `$DIR` with the directory where your `docker-compose.yml` is located.
|
|
|
|
```shell
|
|
cd $DIR
|
|
sudo docker compose -f up -d --pull always
|
|
```
|
|
|
|
## Docker Run
|
|
|
|
```shell
|
|
sudo docker stop wg-easy
|
|
sudo docker rm wg-easy
|
|
sudo docker pull ghcr.io/wg-easy/wg-easy
|
|
```
|
|
|
|
And then run the `docker run -d \ ...` command from [Docker Run][docker-run] again.
|
|
|
|
[docker-run]: ./docker-run.md
|
|
|
|
## Podman
|
|
|
|
To update `wg-easy` (and every container that has auto updates enabled), you can run the following commands:
|
|
|
|
```shell
|
|
sudo podman auto-update
|
|
```
|