各位好 我刚接触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
貌似是主机解析有问题,不知道该从哪解决,求各位大神指点下
sudo docker build -t song/centos-node-hello
后面得跟Dockerfile 的路径 , 如果在当前目录 就用,