Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

The problem is related to the overlay mount points. By default cri-o stores them in /var/lib/containers/storage/overlay while containerd does it in /run/containerd/io.containerd.runtime.v2.task

This is the reason why du -sch shows different results. For correct check with du we can use arg -x:

-x, --one-file-system skip directories on different file systems

Then the results become similar:

root@crio:~# du -schx /var/lib/containers
929M	/var/lib/containers
929M	total

root@containerd:~# du -schx /var/lib/containerd
934M	/var/lib/containerd/
934M	total

thanks for help!

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@giuseppe
Comment options

giuseppe May 6, 2025
Collaborator

@sprait
Comment options

Comment options

You must be logged in to vote
1 reply
@haircommander
Comment options

Answer selected by sprait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants