Is useful to backup custom images and transport images from one container to another without a registry.
docker save fedora:21 > /var/tmp/fedora-21.tar
docker images # to list docker rmi repository:tag|IMAGE ID # syntax docker rmi fedora:rawhide # example
docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)
It will generate a REPOSITORY called fedora/training and a tag 21-training poiting to the same image id.
docker run -i -t fedora /bin/bash
-
-i tells docker to give an interactive shell
-
-t allocate a pseudo-tty