Some containers are run without a systemd
setup inside of them and they also will tend to report the host hardware if /proc
has been bound into the container. For containers it is probably better to report only --os
, --cpu
, --mem
and --ethtool
information.
docker exec -it a36fe2564052c9620e005973e766a793a83ef834621591e11e85a52a7cbf9064 /bin/sh
Inside the container
curl -Lo ./xsos bit.ly/xsos-direct
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 132 100 132 0 0 387 0 --:--:-- --:--:-- --:--:-- 385
100 122 100 122 0 0 142 0 --:--:-- --:--:-- --:--:-- 142
100 165k 100 165k 0 0 142k 0 0:00:01 0:00:01 --:--:-- 3692k
chmod +x ./xsos
./xsos --os --cpu --mem --ip --scrub | tee "${HOME}/$(uuidgen).xsos.out"
ls *.xsos.out
7d295e32-9313-40ab-a370-52ed8c121c8e.xsos.out
cat *.xsos.out