Skip to content

Commit

Permalink
remove mix of docker/compose commands for upgrades (#651)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Welz <tobias.welz@wiznet.eu>
  • Loading branch information
7tobias and Tobias Welz authored Oct 29, 2024
1 parent 74ed40a commit bbc4285
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
20 changes: 5 additions & 15 deletions docs/installation/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,27 +197,17 @@ Ersetze `127.0.0.1` mit der IP Adresse oder dem Hostnamen des Computers, falls d

Um auf eine neue Version von evcc zu aktualisieren, führe folgende Schritte durch:

- Öffne ein Terminal/Eingabeaufforderung
- Öffne ein Terminal/Eingabeaufforderung

- Aktualisiere auf das neuste evcc Image:

```sh
sudo docker pull evcc/evcc:latest
```

- Stoppe den evcc Container:
- Navigiere in das Verzeichnis, das die `docker-compose.yml` Datei von evcc enthält.

```sh
sudo docker stop evcc
```

- Lösche den evcc Container:
- Aktualisiere auf das neuste evcc Image:

```sh
sudo docker rm evcc
sudo docker-compose pull
```

- Starte den evcc Container mit dem aktualisierten Image:
- Falls ein neues Image vorhanden ist, startet das folgende Kommando den Container neu - ansonsten läuft der Alte einfach weiter:

```sh
sudo docker-compose up -d
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,23 +204,18 @@ To update to the latest version of evcc, follow this guide:
- Open a Terminal
- Get the latest release of evcc (changing the tag if appropriate):
- Navigate to the directory that contains the `docker-compose.yml` file of your evcc.
- Get the latest release of evcc
```sh
docker pull evcc/evcc:latest
docker-compose pull
```
- Stop and remove the evcc container:
- Restart the container if there was new version pulled (former container will just continue to run in case there was no upgrade).
```sh
docker stop evcc
docker rm evcc
# or
docker-compose down
docker-compose up -d
```
- Restart the container using the appropriate incantation above.
## NAS systems
### Synology NAS
Expand Down

0 comments on commit bbc4285

Please sign in to comment.