Search code examples
linuxdockerrhel

can we convert a live server to docker image


We are having a custom linux ( an RHEL spin-off) with security enhancements made to harden the box. Now we are planning to move to docker for dev-ops. Is there a way to convert the running box / ova / iso to docker? We are pretty new to docker and we tried to install on a rhel image step by step , it is difficult to harden again as we depend on 3rd party vendors.


Solution

  • Try the steps mentioned in the link below,

    Convert Any Server to a Docker Container - By Zwischenzug

    Here the author is talking about automating the whole process in couple of simple steps, in a nutshell,

    1. Install ShutIt on the server.
    2. Run the ‘copyserver’ ShutIt script.
    3. Run your copyserver Docker image as a container.

    Automate Converting Any Server to a Docker Container

    Hope this helps.