<div dir="ltr">I noticed that this checks and reports that Docker containers are lxc containers, but sometimes it is nice to know that you are in a Docker environment. As such, I added in a test for Docker and it returns as:<div>

<br></div><div><div>bash-4.1# PATH=.:$PATH virt-what</div><div>lxc</div><div>docker</div></div><div><br></div><div>I forked a copy and it's been tested off of a base CentOS and Ubuntu container that most packages are made from. I've also included the tests as well and hope that I made it correct otherwise.</div>

<div><br></div><div><a href="https://github.com/chuckleb/virt-what">https://github.com/chuckleb/virt-what</a><br></div><div><br></div><div><br></div></div>