Docker: Difference between revisions
add login |
add push and remove operation examples |
||
Line 15: | Line 15: | ||
<source lang="bash"> | <source lang="bash"> | ||
$ docker login --username=username --email=joe@mosh.com | $ docker login --username=username --email=joe@mosh.com | ||
</source> | |||
Push image | |||
<source lang="bash"> | |||
$ docker push maryatdocker/docker-whale | |||
</source> | |||
Remove an image | |||
<source lang="bash"> | |||
$ docker rmi -f imageid | |||
</source> | </source> |
Revision as of 13:14, 3 May 2016
List images
$ docker images
Tag an image
$ docker tag 7d9495d03763 maryatdocker/docker-whale:latest
Log-in for push/pull operations
$ docker login --username=username --email=joe@mosh.com
Push image
$ docker push maryatdocker/docker-whale
Remove an image
$ docker rmi -f imageid