Deis docker图像部署

时间:2015-01-16 16:06:38

标签: docker deis

尝试从文档中部署go-example应用程序: http://docs.deis.io/en/latest/using_deis/using-docker-images/#using-docker-images

我正在跳过"准备应用程序" bit并尝试部署示例docker app 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/

有人有任何想法吗?

1 个答案:

答案 0 :(得分:0)

您是否也在跳过“创建应用程序”部分?在Deis中,应用程序是由路由层负载平衡的一组容器。在示例中,他们创建了一个名为“example-go”的文件夹,cd进入该文件夹,然后运行“deis create”。默认为应用程序名称的当前文件夹名称。相反,你可以运行:

deis create example-go

然后你可以使用'-a'标志运行deis pull命令,告诉它要将容器关联到哪个应用程序。

deis pull gabrtv/example-go:latest -a example-go