df / diskfree fails in docker container on CoreOS
The command “docker run alpine df” does not list the disk space, only headers on CoreOS.
core@core-os-3 ~ $ docker run -it —rm alpine:3.3 sh
/ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/ #
Then I’ve tried older Alpine versions down to 2.7, which has a working
df command.
So “docker run alpine:2.7 df” works as expected.
First I thought it would be a CoreOS bug, but then I checked with debian
and ubuntu and both work.
I would be happy if somebody could advise what could be wrong.
We use Alpine for monitoring agents, and I really like the slim images.
(from redmine: issue id 5130, created on 2016-02-16)