Snapshot of docker container
Begin by creating a repository in the docker hub https://hub.docker.com/
Note
On the docker hub, the create repository option is misleading. I read this as create a space to hold multiple containers. This is not what it actually does, the command creates a space for a container and the docker hub path becomes name for the container when it is stored in the docker hub registry.
Commit a running container
docker commit <container id> <repository path as described in the note above>:tag
Perform a docker images, you will see a new image with the name of the docker repository path
Push the image to docker hub using
docker push <repository name>