Skip to content

Commit

Permalink
Merge pull request eco-stake#647 from dylanschultzie/patch-5
Browse files Browse the repository at this point in the history
Add note to tear down docker images
  • Loading branch information
tombeynon authored and git committed Nov 1, 2022
2 parents c8ea29c + 5944a32 commit a623f9c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,14 @@ crontab -e
0 21 * * * /bin/bash -c "cd restake && npm run autostake" > ./restake.log 2>&1
```

Warning: Using crontab with docker without the `--rm` flag will continuously create docker images. Add another cronjob to tear down the images weekly if required:

```bash
crontab -e

0 0 * * */7 /usr/bin/docker image prune -a -f
```

#### Using `systemd-timer`

Systemd-timer allow to run a one-off service with specified rules. This method is arguably preferable to Cron.
Expand Down

0 comments on commit a623f9c

Please sign in to comment.