Deis docker镜像部署
尝试从文档中部署go-example应用程序: 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
它被拉正确。 所以我不是很确定我做错了什么。
使用curl控制器API给了我相同的结果:
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/
任何人有任何想法?
你是否也在跳过“创build应用程序”部分? 在Deis中,应用程序是由路由层负载平衡的一组容器。 在这个例子中,他们创build了一个名为“example-go”的文件夹,将其放入CD中,然后运行“deis create”。 这默认为应用程序名称的当前文件夹名称。 相反,你可以运行:
deis create example-go
然后,可以使用“-a”标志运行deis pull命令,告诉它将哪个应用程序与容器关联起来。
deis pull gabrtv/example-go:latest -a example-go