尝试部署文档中的go示例应用程序:http://docs.deis.io/en/latest/using_deis/using-docker-images/#using-docker-images
我跳过了“准备应用程序”这一部分,尝试部署示例docker应用程序gabrtv/ example -go
我运行以下命令来进行部署:
deis pull gabrtv/example-go:latest如果不工作,我会得到以下信息:
"GET Image Error (404: {\"error\": \"Tag not found\"})"看着https://registry.hub.docker.com/u/gabrtv/example-go/tags/manage/
最新的标签在那里。拉动它
docker pull gabrtv/example-go它被正确地拉出来了。所以我真的不确定我做错了什么。
将控制器API与curl一起使用会得到相同的结果:
curl -i -X POST \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"image":"gabrtv/example-go"}' \
http://$IP:$PORT/v1/apps/dummyapp2/builds/有谁知道吗?
发布于 2015-02-11 06:50:20
您是否也跳过了“创建应用程序”这一部分?在Deis中,应用程序是一组由路由层进行负载平衡的容器。在示例中,他们让你创建一个名为' example -go‘的文件夹,cd进入其中,然后运行'deis create’。默认为应用程序名称的当前文件夹名称。相反,您可以运行:
deis create example-go然后,您可以使用'-a‘标志运行deis pull命令,告诉它要将容器与哪个应用程序相关联。
deis pull gabrtv/example-go:latest -a example-gohttps://stackoverflow.com/questions/27988041
复制相似问题