Exporting and importing

Sometimes you will need to export an image as a zip file because you cant commit it to a repo

docker export <image>:<tag> -o <image>.zip

Copy the file where ever you need it to be done

When importing it doesn't pull over the run command, just the file system.

We need to import it differently

docker import \
--change 'CMD ["command", "goes", "here"]' \
<file>.zip <image>:<tag>

if you're still having issues, try

docker load < <file>.zip

Want to make this site better? Open a PR or help fund hosting costs