uci-docker-build/image-distro

5 lines
146 B
Plaintext
Raw Normal View History

docker run -it $1 /bin/sh -c "cat /etc/os-release" > /tmp/container-os.tmp 2> /dev/null
. /tmp/container-os.tmp
echo $ID
rm /tmp/container-os.tmp