Add missing Docker syntax for prune-storage

This commit is contained in:
HugeFrog24 2024-09-23 02:22:28 +02:00 committed by Chocobozzz
parent 25639d01db
commit d69dbe0f2b
1 changed files with 10 additions and 1 deletions

View File

@ -611,11 +611,20 @@ docker compose exec -u peertube peertube npm run create-generate-storyboard-job
Some transcoded videos or shutdown at a bad time can leave some unused files on your storage. Some transcoded videos or shutdown at a bad time can leave some unused files on your storage.
To delete these files (a confirmation will be demanded first): To delete these files (a confirmation will be demanded first):
```bash ::: code-group
```bash [Classic installation]
cd /var/www/peertube/peertube-latest cd /var/www/peertube/peertube-latest
sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run prune-storage
``` ```
```bash [Docker]
cd /var/www/peertube-docker
docker compose exec -u peertube peertube npm run prune-storage
```
:::
### Update PeerTube instance domain name ### Update PeerTube instance domain name
**Changing the hostname is unsupported and may be a risky operation, especially if you have already federated.** **Changing the hostname is unsupported and may be a risky operation, especially if you have already federated.**