docker system prune wants answer y/n. How to i pass in shell script my shell script
#!/bin/sh
docker stop registry
docker system prune
docker run -d -p 5000:5000 --restart=always --name registry -v /etc/docker/registry/config.yml:/etc/docker/registry/config.yml registry:2
I'm configured cron expression as every minutes
crontab -e
* * * * * /bin/sh /home/sansli/dc.sh
How do i test? I'm checking the created dated as docker ps -a
docker system prune -f
– Minutes