Docker Community Forums

Share and learn in the Docker community.

Importing snapshot of a VM in a docker container

Hi All,

I would like to know if it is possible and how to import in a Docker container a VM snapshot I created outside Docker. I have multiple VMs that I would like to take a snapshot and import in Docker containers.

Thanks for your help

Docker allows you to load a tarball into an image. See the docker import command.

Alternatively, you could do it using a Dockerfile like this:

FROM scratch
ADD path/to/tarball.tar.gz /

I just came across your post. I have similar requirement. Just wondering how you went. Thanks