How to make docker image of host operating system which is running docker itself? -


I started using the docker and I can say it is a great concept so far everything is going well Installed the Docker on Ubuntu (My Host Operating System), which was depicted from the repository and made new images.

Question:

I want to create an image of current operating system How do I get it using Docker? I'm new to Doc, so please ignore any silly things in my questions, if any.

I do not understand why you want to do this, but it is not your question The issue is, here's how nothing is made from creating a new Doker image:

If you can come with a tar file of your current operating system, Docker can create image with command.

  cat my_host_filesystem.tar | Docker import - myhost  

Where myhost you want is the Docker image name and my_host_filesystem.tar the archive file of your OS file system.

Also, take a look from the superuser and stack overflow.

If you want to know more about this, then search for Docker "Scratch" is a good starting point.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -