【发布时间】:2015-01-01 09:34:21
【问题描述】:
在官方文档中我们可以看到:
# docker build github.com/creack/docker-firefox
它对我来说很好用。 docker-firefox 是一个存储库,在根目录中有 Dockerfile。
然后我想构建 redis 映像和确切的 2.8.10 版本:
# docker build github.com/docker-library/redis/tree/99c172e82ed81af441e13dd48dda2729e19493bc/2.8.10
2014/11/05 16:20:32 Error trying to use git: exit status 128 (Initialized empty Git repository in /tmp/docker-build-git067001920/.git/
error: The requested URL returned error: 403 while accessing https://github.com/docker-library/redis/tree/99c172e82ed81af441e13dd48dda2729e19493bc/2.8.10/info/refs
fatal: HTTP request failed
)
上面有错误。从 github repos 构建 docker 映像的正确格式是什么?
【问题讨论】: