Installing services in an LXC container

If you really need to use Centos, then I suggest to use these instructions instead,

These instructions are about LXD (not LXC), which is simpler and easier to use.