查找鏡像
docker search whalesay
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
docker/whalesay An image for use in the Docker demo tutorial 631
mendlik/docker-whalesay Docker whalesay image from training material… 7 [OK]
sabs1117/whalesay Whalesay with fortune phrases. 1
nikovirtala/whalesay Tiny Go web service to print Moby Dock ASCII… 1 [OK]web
拉取
docker pull docker/whalesaydocker
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker/whalesay latest 6b362a9f73eb 3 years ago 247MBit
運行
docker run docker/whalesay cowsay 你好docker
______________
< 你好docker >
--------------
\
\
\
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/ test
生成本身的鏡像
docker tag docker/whalesay mengzhang6/whalesay登錄
登陸
docker loginservice
推送到遠程
docker push mengzhang6/whalesayim