Karthik S
Karthik S

Reputation: 147

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.

Upvotes: 1

Views: 7867

Answers (2)

Vishwamber Shetty
Vishwamber Shetty

Reputation: 59

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.

Upvotes: 0

hurturk
hurturk

Reputation: 5454

Although it is recommended to start over, you should be able to convert a running instance to docker image as described in official documentation with bash script example for CentOS/RHEL.

Upvotes: 2

Related Questions