I have a private Linux distribution (based on redhat7). I have an ISO file which holds the installation of that distribution, which can be used to install the OS on a clear system only. I have some programs I would like to run as images on docker, each program on a different image. Each program can only run on my Linux environment and so I am looking for a way to create the appropriate images, so they can be ran under docker.
I tried following Solomon instructions here:
- mkdir rootfs
- mount -o loop /path/to/iso rootfs
- tar -C rootfs -c . | docker import - rich/mybase
But I don't know how to proceed. I can't run any command since the machine isn't running yet (no /bin/bash/ etc.) How can I open the installation shell?
Is there a better way to run programs via docker on a private Linux distribution? (Just to be clear, the programs can run only on that specific OS and that OS can only be installed on a clear machine. Not sure if I need a base image but I'd like to run these programs with Docker and that is possible only over this OS)
I ran into many questions like mine (like this) but I couldn't find answer that helped me.