dockerhub

Create keyspace automatically inside docker container with cassandra

北战南征 提交于 2019-12-12 09:32:27
问题 I was wondering if someone has tried to build a cassandra docker image with default keyspace, I've tried to do it on BUILD time but it doesn't work because cassandra is not running in that phase. It was something similar to this: FROM cassandra:2.0 COPY ../somewhere/keyspace_definition.txt /src/keyspace_definition.txt RUN /usr/bin/cqlsh -f /src/keyspace_definition.txt My new approach will be to do it from the entrypoint script, but, I wanted to now if someone else has a better idea. Happy

How to automate a docker run from a private Dockerhub repo?

半世苍凉 提交于 2019-12-12 08:47:38
问题 I have a EC2 server running Docker and I'd like to add the following to the User Data so my private Dockerhub images will be pulled/run when the server starts up, like so: #!/bin/bash sudo docker run -p 3333:3333 -d --name Hello myusername/hello But I'm unsure as to how to go about authenticating in order to gain access to the private repo myusername/hello . With Github you create and upload a deploy key, does Dockerhub offer a similar deploy key option? 回答1: UPDATE: Figured out an even

Error while is docker pull image

£可爱£侵袭症+ 提交于 2019-12-12 02:49:33
问题 I have taken docker login and : docker pull xxx/image_name , but I got eror: Error: Status 403 trying to pull repository xxx/image_name: "\"The Repository is Locked, access denied\ I have searched on google but no luck, Please give me some suggestions, thanks in advance ! 回答1: This problem may occur for two reasons, as described in this link: User has their Default Repository Visibility set to Private and they push a new repository using the Docker CLI. If you don't have any free private

Jenkins Declarative pipeline docker: command not found

断了今生、忘了曾经 提交于 2019-12-11 17:34:59
问题 I have installed Jenkins locally on my machine. I pulling some source code from my github repository which has a Docker file in the root directory. I want to build and docker image and push it to docker hub but my build fails with the following message... docker build -f myapp-web:latest . \n /Users/Shared/Jenkins/Home/workspace/MyApp@tmp/durable-ee9851e9/script.sh: line 1: docker: command not found pipeline { agent any tools { maven 'maven_3.6.1' jdk 'jdk8' } stages { stage('Build') { steps

unable to pull public images with kubernetes using kubectl

天大地大妈咪最大 提交于 2019-12-11 04:35:27
问题 I run the following commands and when I check if the pods are running I get the following errors: Failed to pull image "tomcat": rpc error: code = Unknown desc = no matching manifest for linux/amd64 in the manifest list entries kubectl run tomcat --image=tomcat --port 8080 and Failed to pull image "ngnix": rpc error: code = Unknown desc = Error response from daemon: pull access denied for ngnix, repository does not exist or may require 'docker login' kubectl run nginx3 --image ngnix --port 80

How can I use Docker Registry HTTP API V2 to obtain a list of all repositories in a docker registry?

我的梦境 提交于 2019-12-11 01:04:09
问题 An external organization that I work with has given me access to a private (auth token protected) docker registry, and eventually I would like to be able to query this registry, using docker's HTTP API V2, in order to obtain a list of all the repositories and/or images available in the registry. But before I do that, I'd first like to get some basic practice with constructing these types of API queries on a public registry such as Docker Hub. So I've gone ahead and registered myself with a

Error response from daemon: manifest for ibmblockchain/fabric-peer:latest not found

左心房为你撑大大i 提交于 2019-12-10 12:29:41
问题 I'm trying to run the docker pull ibmblockchain/fabric-peer command, but I'm getting this error message: Error response from daemon: manifest for ibmblockchain/fabric-peer:latest not found. Is there any other way to pull this image ? Also trying to pull another images but get same error message. 回答1: As you can see on below link the tag is not available https://hub.docker.com/r/ibmblockchain/fabric-peer/tags/ You should use 1.0.1 docker pull ibmblockchain/fabric-peer:1.0.1 回答2: i was also

How to pull docker image from docker hub private registry into Azure Container Service (ACS)?

余生颓废 提交于 2019-12-08 13:41:45
问题 I have setup a private registry in Docker hub (hub.docker.com): rbiswas/http-service. Now I am trying to pull/run this image into Azure Container Service (ACS) cluster vm by following the steps mentioned below: First I ssh into the ACS cluster using command: ssh -i /home/rbiswas/.ssh/acs_rsa -L 2375:localhost:2375 -N rbiswas@swarmclustermgmt.eastasia.cloudapp.azure.com -p 2200 Then I use the following commands in another terminal: docker -H tcp://localhost:2375 login hub.docker.com docker -H

How to build a Docker image on a specific architecture with Docker Hub?

一曲冷凌霜 提交于 2019-12-08 05:13:52
问题 I have these automated builds on Docker Hub: And for reference, here are both Dockerfiles: https://github.com/rfgamaral/docker-gphotos-uploader/blob/master/Dockerfile https://github.com/rfgamaral/docker-gphotos-uploader/blob/master/Dockerfile.arm32v7 And here's the build log for the arm32v7 build: Building in Docker Cloud's infrastructure... Cloning into '.'... Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Reset branch 'master' Your

Different home directory during Docker build in Docker hub

旧时模样 提交于 2019-12-08 01:32:21
问题 I have found a strange difference between building docker images in my Ubuntu 14.04 host machine and the Docker Hub automated builds. This is my Dockerfile: FROM buildpack-deps:wheezy-scm RUN echo $HOME This is the output in my machine: ---> 2afbec25f6f6 Step 1 : RUN echo $HOME ---> Running in 6074455e13c0 / ---> 0cb1b6141f93 Removing intermediate container 6074455e13c0 Successfully built 0cb1b6141f93 And this one comes from Docker hub: ---> 2afbec25f6f6 Step 1 : RUN echo $HOME /root --->