Docker, save/import container to local registry

Docker, save/import  container to local registry


Steps:
# where localhost:5000 - local registry
# test-container - container name

$ docker tag test-container localhost:5000/test
$ docker push localhost:5000/test


# Import
# docker load -   Load an image from a tar archive on STDIN
# docker load --input  ~/save.tar



# Commit
# docker commit - Create a new image from a container's changes

$ docker commit 77e9aac8a69b test

# Save
# docker save - Save an image to a tar archive (streamed to STDOUT by default)
$ docker save  test   > ~/save.tar