如何发布自己的image

qq_5448e0edc33b1 2014-10-23 19:11:46

各位好 我刚接触docker,今天和昨天研究了俩天 自己在windows下弄了Boot2Docker 按照官网的Examples试了 但是没building 成功,具体如下:

docker@boot2docker:~/src$ sudo docker build -t song/centos-node-hello

Usage: docker build [OPTIONS] PATH | URL | -
Build a new image from the source code at PATH
  --force-rm=false     Always remove intermediate containers, even after unsucce
ssful builds
  --no-cache=false     Do not use cache when building the image
  -q, --quiet=false    Suppress the verbose output generated by the containers
  --rm=true            Remove intermediate containers after a successful build
  -t, --tag=""         Repository name (and optionally a tag) to be applied to t

he resulting image in case of success

貌似是主机解析有问题,不知道该从哪解决,求各位大神指点下


回帖列表
f7u12 2014-11-08 23:43:06
http://www.docker.org.cn/book/docker/13_docker-push-image.html
hordemark 2014-11-04 15:22:57

sudo docker build -t song/centos-node-hello 




后面得跟Dockerfile 的路径 , 如果在当前目录  就用, 

1/ 1
蝉知2.0