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