Saving this here for future reference.
If you wan’t to move a container that you’ve set up (i.e. from development to production) and you don’t yet want to push it to docker hub, here’s a way to move it:
- Export the container to a tarball
docker export <CONTAINER ID> > /home/export.tar
- More your tarball to the new machine
- Import it back
cat /home/export.tar | docker import – some-name:latest