Tag: 混帐

如何在公共registry中创build一个基于git标签的Docker镜像?

我正在构build一个使用Docker的持续部署策略。 我的代码托pipe在Github上,当我推入git时,Dockerregistry开始自动生成。 默认设置是当我推到主人时开始build立,并用“最新”标签创build一个图像。 这很好,但我也希望能够在git中标记提交并基于此创build一个图像。 在Dockerregistry网站上似乎有一些function,在Edit Automated Build设置页面上,我可以为typesselect“标记”,并提供静态标记名称。 如何让Docker标签名称与Git标签名称相同? 目标是能够标记特定的版本,所以有一个版本的历史。

Dockerhub自动构build与多个私人回购

有一种方法可以在自动化dockerhub构build过程中连接到多个私有git仓库吗? 我们正在构buildgolang应用程序,并需要“去获得”其他私人回购作为我们构build的一部分,目前他们因为docker工人无法连接到他们而失败,只有目标私人回购。 主要的回购是好的,因为部署密钥通过Dockerhub安装,但任何后续的私人回购导入失败。 我能看到的一个方法就是在本地构build镜像,“docker工人”将其拖放到dockerhub上,然后在部署方面拉下来,这样做会影响dockerhub和自动化构build系统的function。 另一种是把ssh键烧成基本的图像,这不是一个好主意。 有没有人有一个解决scheme,这不涉及到本地烧图像或build设SSH密钥? 非常感谢。

Docker:如何从Github存储库上的非主分支构build一个图像

是否有可能从Github存储库上的非主分支构build图像? 例如,我有一个分支development的存储库//github.com/myAccount/docker-myImage ,我想用于我的图像。 不幸的是,下面的命令似乎只允许从master分支构build: docker build -t myAccount/myImage git://github.com/myAccount/docker-myImage 以下是man docker build的相关文档: Building an image using a URL This will clone the specified Github repository from the URL and use it as context. The Dockerfile at the root of the repository is used as Dockerfile. This only works if the Github repository is a dedicated […]

Docker:如何使用ssh访问私人github回购?

我试图克隆使用Docker从github的私人回购。 问题是我需要使用SSH来访问该回购。 我在我的github项目的设置中添加了一个密钥,我想用它来识别docker服务器。 我的问题是,我不知道我应该写在我的Dockerfile中,以便服务器使用该密钥,当它试图访问我的github回购。 我看到id_rsa被添加到容器的示例,但是我不知道id_rsa存储在其服务器上的位置,如果存在 RUN mkdir /root/.ssh/ # can't find the file id_rsa ADD id_rsa /root/.ssh/id_rsa RUN touch /root/.ssh/known_hosts RUN ssh-keyscan github.com >> /root/.ssh/known_hosts run git clone git@github.com:user/repo.git 如何从docker的服务器访问我的私人回购?

docker高山golang去编码.net私人回购得到错误

我使用coding.net创build了私有存储库。 我使用docker图像高山和centos 。 我可以从git.coding.net/alphayan/orionv2.git successful -centos获得git.coding.net/alphayan/orionv2.git successful ,但是我不能从docker-alpine获取git.coding.net/alphayan/test.git 。它返回一个错误,指出: /go/src # go get -u -v git.coding.net/alphayan/test.git # cd .; git ls-remote https://git.coding.net/alphayan/test fatal: could not read Username for 'https://git.coding.net': terminal prompts disabled # cd .; git ls-remote git+ssh://git.coding.net/alphayan/test Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct […]

我可以使用Github存储库作为Docker镜像的来源吗?

诚然,我是一个完全noob关于以下,但我觉得我无法find自己的答案这个问题,因为信号/噪音基于search条款docker图像,github,等等。 所以具体地说,我的问题是:我可以使用我的分支版本的Rabbitmq官方图像的Github存储库作为我的FROM指令的值吗? 我试过指定每个我能想到的URL的变体,但没有任何运气(错误包括Error: image ethagnawl/rabbitmq:latest not found , Error: image ethagnawl/rabbitmq:efb97a5171a3672c0c6f38d9127912d5fe753e27 not found )。

无法连接到github.com端口443:连接被拒绝,Bootstrap,Discourse Docker失败

在Discourse的本地安装中运行/var/docker ./launcher bootstrap app命令时,出现此错误。 fatal: unable to access 'https://github.com/SamSaffron/pups.git/': Failed to connect to github.com port 443: Connection refused FAILED TO BOOTSTRAP 以下是我的containers/app.yml的内容。 我一直在使用本指南来尝试启动并运行。 我听说有人遇到HTTP连接问题,因为iptables -L包含一些阻止docker容器连接到互联网的规则。 但是就在下载图像之前。 所以我不明白。 ## ## After making changes to this file, you MUST rebuild for any changes ## to take effect in your live Discourse instance: ## ## /var/docker/launcher rebuild app […]

如果gitbash是由docker quickstartterminal快捷方式启动的,不要更改目录

Docker快速入门terminal使用以下标志加载gitbash: "C:\Program Files\Git\bin\bash.exe" –login -i "C:\Program Files\Docker Toolbox\start.sh" 我的标准gitbash快捷方式定义为: "C:\Program Files\Git\git-bash.exe" –cd-to-home 我相信问题是在我的.bashrc文件中,我将目录更改为我正在处理的当前项目。 问题似乎是这个目录更改导致start.sh从一个意外的位置开始,导致初始化崩溃。 有没有一个通用的解决scheme在多个上下文中运行gitbash? (例如,有没有一种方法来检测像login这样的标志,或者是否在启动后调用了一个脚本,以避免更改目录?

golang docker私人github存储库

我正在尝试创build一个从私人和公共github存储库中提取的docker镜像。 我使用的dockerfile是 FROM golang:1.4.2-onbuild ENV GOPATH /go ENV PATH /go/bin:$PATH EXPOSE 3000 RUN mkdir -p /go/src/github.com/eddi/api RUN git clone https://<access token>@github.com/owner/repo.git /go/src/github.com/owner/repo WORKDIR /go/src/github.com/eddi/api RUN go get github.com/gin-gonic/gin RUN go run server.go 但是当我运行docker构build。 我得到以下错误: cd。 git clone https://github.com/gin-gonic/gin/go/src/github.com/gin-gonic/gin 克隆到“/go/src/github.com/gin-gonic/gin”… 致命:无法访问' https://github.com/gin-gonic/gin/ ':无法parsinghost:github.com 为私人和公共存储库。 如何让我的dockerfile在导入库方面performance良好?

无法读取“https://github.com”的用户名:没有这样的设备或地址

我正在使用这个命令使用gitbuild立一个sudo docker build github.com/roseperrone/myproject : sudo docker build github.com/roseperrone/myproject ,但是我得到这个错误: could not read Username for 'https://github.com': No such device or address 我应该如何提供我的git证书? 我正在运行一个AWS ec2实例。