How do I create docker image from an existing CentOS?

I am new to docker.io and not sure if this is beyond the scope of docker. I have an existing CentOS 6.5 system. I am trying to figure out how to create a docker image from a CentOS Linux system I already have running. I would like to basically clone this existing system; so I can port it to another cloud provider. I was able to create a docker image from a base CentOS image but I want to basically clone my existing system and use docker.io going forward.

Am I stuck with creating a base CentOS from scratch and configure it for docker from there? This might be more of a VirtualBox/Vagrant thing, but am interested in docker.io.

  • webpack and react jsx - hot loading not working with docker container
  • Basic elasticsearch tribe setup with docker
  • Deploy Cloudsuite benchmark using Docker swarm mode
  • Phoenix Framework - docker image for development and deployment to Kubernetes
  • How to securely share private docker repo login credentials in Azure container service with Mesos & Marathon
  • How to manage Docker container with dockerode
  • Looks like I need to start with base CentOS and create a Dockerfile with all the addons I need… Think I’m getting there now….

  • 501 Not Implemented when pushing to Artifactory Docker repository
  • Why install docker on ubuntu should be `sudo apt-get install docker.io`?
  • Unix protocol not supported - Docker Plugin Version - 0.16.2
  • Docker login from cmd line yields i/o timeouts
  • Google Container Engine stdout Logs Not Showing Up
  • Angular 2 build once, deploy anywhere
  • One Solution collect form web for “How do I create docker image from an existing CentOS?”

    Cloning a system that is up and running is certainly not what Docker is intended for. Instead, Docker is meant to develop your OS and server installation together with the app or service, making DevOps even more DevOpsy. By starting with a clean CentOS image, you will be sure to install only what you need for the service, and have everything under control. You actually don’t want all the other stuff that might produce incompatibilities. So, the answer here is that you definitely should approach the problem here the other way around.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.