Deleting logs to save disk space

Hi all,

is it safe to hit the delete button on the right to delete logs? Or will this delete essential files for the container I am running? I am looking to clear disk space

It will not delete anything, only the visible lines on the logs tab. You can use it when you watched the logs and there are too many lines and you want to see the new logs only so you clear the screen.

Thanks.

Do you know how you can clear disk space when running a container? I’m using windows. Using docker prune command might end up deleting files I need to keep.

Well, use a proper system command and don’t delete what you don’t want. If your containers have large logs, those logs will be kept until you delete the container, but you don’t need to delete volumes where all your data should be. You can delete build cache, dangling images and stopped containers you don’t need anymore just forgot to delete.

Some help here

1 Like