Tag: dockerhub

将docker映像推送到docker hub私有存储库返回authentication错误

我已经build立了testing图像,并试图将其推送到docker中心的私有存储库。 我能够login“dockerlogin”和凭据获取存储在.dockercfg文件。 但是,当我试图用“docker push accountname / repositoryname”命令推送图像时,它会返回以下错误。 36423578012b:图像推送失败FATA推送到registry的错误:需要validation。 什么是正确的方式推入docker枢纽的私人存储库? Docker版本: 客户端版本:1.6.0 客户端API版本:1.18 Go版(客户端):go1.4.2 Git的提交(客户端):4749651 OS / Arch(客户端):darwin / amd64 服务器版本:1.6.0

docker工人build立一个模板Dockerfile

我正在使用特拉维斯build立文物(jar子和拉链),并将它们存储在bintray。 我想build立docker的图像,安装这些文物,例如在0.1.0版本的“应用程序”artefact,哈希abc123: FROM some-registry/oracle-jre7 RUN wget https://BINTRAY_USER:BINTRAY_API_KEY@dl.bintray.com/USER/REPO/app-0.1.0_abc123.jar -O /opt/app.jar EXPOSE 9000 CMD ["java", "-jar", "/opt/app.jar"] 每次我想创build这个docker图像的哈希(也许版本)将是不同的,我不想使用“最新”。 我可以使用travis中的模板轻松生成Dockerfile,但是我不确定如何构buildDocker镜像。 看来我不能在travis和quay.io和docker集线器上build立它,我没有一个API可以发布Dockerfile或存档(虽然你可以通过在quay.io ui做到这一点)。 我不想让Travis将Dockerfile提交到次要的git仓库,因为如果它们有多个分支,那么同步两个仓库就变得非常复杂。 我也可以像这样提交一个Dockerfile到主仓库,然后触发quay.io或dockerhub在artefact创build后(如果他们可以以某种方式评估git hash): FROM some-registry/oracle-jre7 ENV APP_VERSION 0.1.0 ENV APP_GIT_HASH $(git rev-parse –short HEAD) # this definitely doesn't work RUN wget https://BINTRAY_USER:BINTRAY_API_KEY@dl.bintray.com/USER/REPO/app-${APP_VERSION}_${GIT_HASH}.jar -O /opt/app.jar EXPOSE 9000 CMD ["java", "-jar", "/opt/app.jar"] 我目前正在尝试在ec2中放置docker主机,并让travisbuild立docker镜像并将其推送到bintary上的docker仓库,但我宁愿不必亲自pipe理主机。

无法将泊坞窗图像推送到docker集线器

这是我试图推向docker枢纽的图像 REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE smiduthu/has_test latest 2e0d0ba5412a 27 minutes ago 765.4 MB 我在做docker push smiduthu/has_test 。 我尝试推送图像时发生以下错误 The push refers to a repository [smiduthu/has_test] (len: 1) 2e0d0ba5412a: Image push failed FATA[0002] Error pushing to registry: token auth attempt for registry https://registry-1.docker.io/v2/: https://auth.docker.io/ =repository%3Asmiduthu%2Fhas_test%3Apull%2Cpush&service=registry.docker.io request failed with status: 401 Unauthorized 问题是什么 ?

麻烦得到docker形象和runnig

我昨天下载了一个hopsoft / graphite-statsd docker镜像。 当我现在进入docker imagesterminal并inputdocker images ,我得到: bash-3.2$ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE hello-world latest af340544ed62 2 weeks ago 960 B <none> <none> 89bd20e2deb3 3 weeks ago 785.7 MB bash-3.2$ 我猜测, hopsoft/graphite-statsd是标有<none>那个 但是当我打开Kitematic(Docker的GUI)时,只有你好 – 世界被列在我的图像清单上。 hopsoft/graphite-statsd没有列出。 在去terminal,并试图运行该图像: docker run 89bd20e2deb3 ,我得到以下内容: bash-3.2$ docker run 89bd20e2deb3 *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh… No SSH […]

Docker Hub私人回购login。 更安全的方式?

我曾经看到过这样的文章,关于如何从私人回购协议中获得回报,以及“最好”的方式。 我所理解的是,如果我想自动化任何基础设施来从dockerhub中提取我的docker镜像,我需要: 有一个用户,我可以login。 将用户的信誉保存在一些将启动我的基础设施的应用程序(无论是EC2用户数据,适合的configuration文件还是某些API中的ENVvariables)。 当机器启动时,它使用该用户的凭证login并在机器上放置一个令牌。 一切都很好。 我想知道是否有任何function使用应用程序密钥/令牌,而不是需要将其绑定到用户。 如果我可以pipe理应用程序密钥以访问我的用户/组织的DockerHub帐户,似乎会更安全/方便。 然后,我可以抽出钥匙或更改我的密码,不用担心天空坠落。 像这样的东西是可用的,即将到来的,还是有我没有遇到的解决scheme吗? 谢谢!

问题与Docker工具箱

在使用Docker Toolbox的Mac OS上获取Docker设置后,我得到了以下问题: Pulling repository docker.io/library/hello-world Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority 我在StackOverflow上看到了这个问题的一些可能的解决scheme,但是他们都没有为我工作。 例如,我已经检查了date,在我的情况下设置正确。 有谁知道在Mac OS X上的Docker Toolbox解决scheme吗?

apache马拉松:我的docker形象保持失败

我按照这里的步骤 我已经创build了一个json文件: { "id": "/myjavabuild-2", "cmd": null, "cpus": 1, "mem": 1024, "disk": 0, "instances": 1, "container": { "type": "DOCKER", "volumes": [], "docker": { "image": "hub.docker.com/eugenepark3/myjavabuild", "network": "HOST", "privileged": false, "parameters": [], "forcePullImage": false } }, "portDefinitions": [ { "port": 10001, "protocol": "tcp", "labels": {} } ], "uris": [ "file:///etc/docker.tar.gz" ], "fetch": [ { "uri": "file:///etc/docker.tar.gz", […]

Docker Hub更新通知

是否有任何好的方法/工具来获取有关Docker Hub容器更新的通知? 只是为了澄清,我不想自动更新,只是以某种方式被通知更新。 我目前正在运行一个Kubernetes集群,所以如果我能指定一个容器列表(而不是使用我的系统上的那个容器),这将是非常好的。

Docker java api maven构build错误:busybox是一个无法识别的图像。 请先拉下图片

我试图通过从git仓库克隆来构builddocker的Java API ,然后使用maven构build,如下所示: mvn clean install -DskipTests=false -Ddocker.io.username=username -Ddocker.io.password=password -Ddocker.io.email=my@email.id 但是,生成testing失败导致以下错误消息: Results : Failed tests: testRunShlex(com.github.dockerjava.client.DockerClientTest): busybox is an unrecognized image. Please pull the image first. testAuth(com.github.dockerjava.client.command.AuthCmdTest): com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404 testAuthInvalid(com.github.dockerjava.client.command.AuthCmdTest): expected:<401> but was:<404> testAddAndCopySubstitution(com.github.dockerjava.client.command.BuildImageCmdTest): testDockerBuilderAddFileInSubfolder(com.github.dockerjava.client.command.BuildImageCmdTest): testDockerBuilderAddFolder(com.github.dockerjava.client.command.BuildImageCmdTest): testDockerBuilderAddUrl(com.github.dockerjava.client.command.BuildImageCmdTest): testNetCatDockerfileBuilder(com.github.dockerjava.client.command.BuildImageCmdTest): testNginxDockerfileBuilder(com.github.dockerjava.client.command.BuildImageCmdTest): commit(com.github.dockerjava.client.command.CommitCmdTest): busybox is an unrecognized image. Please pull the image first. testDiff(com.github.dockerjava.client.command.ContainerDiffCmdTest): busybox […]

Docker命令从registry中提取dockerfile

我是新来的docker,我想知道为什么没有命令来获取AUTOMATED AUTOMATED BUILD -repo的Dockerfile从本地build立图像(可以很方便,而不是打开浏览器,偷看回购网页上的github引用,然后使用git来克隆)