如何发布自己的image
2014-10-23 19:11:46
飞翔的无脚鸟
  • 访问次数: 2
  • 注册日期: 2014-10-23
  • 最后登录: 2014-10-23

各位好 我刚接触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

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


沙发
2014-11-04 15:22:57
hordemark
  • 访问次数: 2
  • 注册日期: 2014-11-04
  • 最后登录: 2014-11-04

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


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

板凳
2014-11-08 23:43:06
究极反则生命体
  • 访问次数: 2
  • 注册日期: 2014-10-22
  • 最后登录: 2014-10-22
http://www.docker.org.cn/book/docker/13_docker-push-image.html
1/1