I am very new to docker and am trying to import my AWS EC2 AMI into a docker image. The image is a m2 linux image.
I have also setup a private docker hub(artifacto
When creating the tar file cd to the directory and tar the tree from there.
cd
tar
cd /media/my-external-drive tar -czvf /tmp/drive-image.tgz
And then to create the image ...
docker import /tmp/drive-image.tgz
This allows the dockerized container to create the correct paths when you run it.
dockerized