N
N
nano_e_t_42017-07-20 19:04:31
Debian
nano_e_t_4, 2017-07-20 19:04:31

Why does df show different data?

Everyone, I
found this moment:
On the host system, I do lxc exec lxc_container_name df -h /, I get one value
In the container itself, I get a different value (in particular, two GB more)
Why can this be?

for containerization use lxd 2.0.5-0ubuntu1~ubuntu16.04.1
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2017-07-20
@Sanes

Because 2 GB is occupied by images?

X
xotkot, 2017-07-20
@xotkot


A sparse df file shows the actual size, but for example the ls command will show an unreal one (full size of sparse files)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question