note 1:
stop and remove a container
docker ps
docker stop containerID
docker rm containerID
Under normal circumstances ,you can't remove the container dosen't at stop status. if you need
you can add a -d (force) param to carry out it .
docker rm -f containerID
note 2 :
registry VS repository
note 3 :
list locally images
docker image ls
note 4 :
rename a image
docker tag [localImage] [YOUR-USER-NAME/renamedimage]
note 5:
push a image to dockerHub
docker push gyk666/myImage[:mytag]
#If you don't specify a tag, Docker uses a tag called latest.
note 6:
remove a image
docker rmi <image-id-or-name>
remove all of unuse images
docker image prune -a