Provide an ability to run the «./launcher cleanup» command without any manual «Are you sure» confirmations, so to make it schedulable in Cron

https://github.com/discourse/discourse_docker/blob/master/launcher#L386-L406

That can be achieved today using the yes command.

yes | ./launcher cleanup
12 Likes

Can we still make this work?

yes | ./launcher cleanup
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] Total reclaimed space: 0B
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y

The last Y was entered manually to get the cleanup to proceed.