0

I have an ubuntu server in Google Cloud which I'd like move completely to host in Docker on my desktop machine. How can I just clone it and download it for local usage on ubuntu using Docker?

Is there a way to install docker on the VM and create an image of the machine which i can import into my local machine?

PS: Docker Noob

mitchelangelo
  • 851
  • 4
  • 16
  • 42
  • Fundamentally, no, Docker containers and VMs are different enough environments that you can't just import one into another. – David Maze Jul 20 '20 at 20:57
  • but the server is running on ubuntu and Docker runs on ubuntu, is there no way to create an image of the host system from within docker on ubuntu? Is this not what Docker does? – mitchelangelo Jul 20 '20 at 21:25
  • That is not what Docker does. [How is Docker different from a virtual machine?](https://stackoverflow.com/questions/16047306/how-is-docker-different-from-a-virtual-machine) discusses this in some detail. – David Maze Jul 20 '20 at 21:54
  • It's often helpful to think of a Docker container as a wrapper around _a single process_. It doesn't need to run a full init system, or login services, or manage its own networking, or any of the other things a (possibly cloud-hosted) VM does. – David Maze Jul 20 '20 at 21:55

0 Answers0