docker build -t create_ks_bootiso .
docker images -a --filter=dangling=true -q | xargs -r docker rmi
Example:
docker run --privileged -v $(pwd):/opt/work -t create_ks_bootiso \
customiso \
--isolinuxcfg isolinux.cfg \
--kickstart ks.cfg \
--output-bootiso custom-boot.iso \
CentOS-7-x86_64-DVD-1511.iso
docker ps --filter=status=created --filter=status=exited -q | xargs -r docker rm
Example:
docker run -v $(pwd):/opt/work -t create_ks_bootiso \
ksvalidator --version RHEL7 /opt/work/ks.cfg
Example:
docker run -i -t create_ks_bootiso rootpw --sha512