Weekly Automatic Command Line Docker Prune in GUI?

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60
Hi,

Not so versed user of linux here.

I need assistance to set these commands to run in the shell automatically every week.

docker image prune --all --force --filter "until=24h"
docker container prune --force --filter "until=24h"
docker volume prune --force
docker system prune --all --force --volumes

For now I just run it manually in shell every week. Appreciate any help in guiding me where to add these in the GUI.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
System Settings->Advanced Settings->Cron Jobs

Note, you'll need the full path for docker.
 

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60
System Settings->Advanced Settings->Cron Jobs

Note, you'll need the full path for docker.

Hello there! Sorry for bringing up an old thread but I do not have any idea on how to run a full path for docker.

Can you help a newbie on this?
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
Note, you'll need the full path for docker.
I have no issues running the no path command? I'm going to update to full /bin/docker path if needed but I prefer the no path.

1665449550386.png
 
Last edited:
Top