I saw that it's possible to convert a Docker image into a Vagrant box.
Is there a way to convert a Vagrant box into a Docker image?
I saw that it's possible to convert a Docker image into a Vagrant box.
Is there a way to convert a Vagrant box into a Docker image?
I replayed this with EC2 boxes and Virtualbox boxes in my Github project blacklabelops/centos. I have prepared a Vagrantfile with the necessary installation and you can try it yourself with your Vagrant boxes.
EC2 boxes:
Create and provision an AMI image with https://github.com/katzj/ami-creator - Skripts in my repository.
Afterwards use Guestfish in order to extract the image into a tarball. - Skripts in my repository.
Import the tarball inside Docker. - Example in my repository.
And now with Vagrant Virtualbox, commands can be replayed with my provided Vagrantfile. Just clone the repository, spin it up and type:
After the raw has been created you can apply Guestfish.
Importing into docker:
Look inside the container