<div dir="ltr"><div><div><div><div><div><div><div><div>I've never had a problem creating or running containers that match the host OS- but now I need to create a CentOS container on a RHEL host and it's not working the way I thought it would. Either I'm doing something wrong- or I don't understand how LXC actually works.<br><br></div>I'm executing the following command:<br><br></div>lxc-create -t centos -n <hostname><br><br></div>I would expect this command to create a container with a CentOS userland -<br><br>i.e. cat /etc/redhat-release would result in "CentOS release 6.6 (Final)" as the output.<br><br></div>Or if I specified -- --release 5 (assuming they're compatible) then I would expect to find a 5.11 userland.<br><br></div>However in every case I always end up with a RHEL 6.6 container (the same as the host OS).<br><br></div><div>As I said- I'm obviously doing something wrong- or I have misunderstood LXC templates.<br><br></div><div>Can anyone clear this up for me?<br></div><div><br></div>Running LXC version 1.0.7 from the EPEL repository on RHEL 6.6.<br><br></div>Thanks,<br></div>-Don<br></div>