Repositories which are referenced in the base image of Centos does not contain any package with lightweight X window manager like Fluxbox. If you try to install it, you’ll end up with the following error:
It’s sufficient to add EPEL (Extra Packages for Enterprise Linux) repository:
Let’s test this whole setup on Docker image. We will install also TigerVNC server to view the Fluxbox UI:
Now connect by your VNC client (e.g. RealVNC) to localhost:5901. The result should look like this: