xCAT is Extreme Cloud Administration Toolkit, xCAT offers complete management for bare-metal based cluster.
$ docker build -t xcat .
$ docker build -f ubuntu/Dockerfile -t xcat:xenial .
$ docker build --build-arg xcat_baseos=bionic -f ubuntu/Dockerfile -t xcat:bionic .
$ docker build --build-arg xcat_version=devel -t xcat-devel .
docker run -d --name xcatmn --network=host --hostname xcatmn --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro xcat
Note: sshd
service in container cannot be up when using host network, enter the container with:
docker exec -it xcatmn /bin/bash
xCAT container will create /xcatdata
volume to store configuration and OS distro data, do not use bind mode to overide the volume unless you have backup all initial data from the container image.