Can someone help me here.. Command: sh -c " while true: do docker container pr . . .

Elena Ceban:
Can someone help me here…
Command: sh -c "
while true: do docker container prune -f; sleep 720h; done &&
whille true: do docker image prune -af; sleep 86400; done " what is wrong with this code

Pedro Soares:
Well, if it’s bash syntax, then it should be ; instead of : after the while true

Elena Ceban:
@Pedro Soares thank you ,but except this ; is anything else wrong

unnivkn:
Hi @Elena Ceban please try this:
while true; do docker container prune -f; sleep 720h; done &
while true; do docker image prune -af; sleep 86400; done