dockerhub

docker private registry user creation

北战南征 提交于 2020-01-03 00:57:34
问题 I have created my private docker registry running on localhost:5000/v1 but it does not provide authentication, How to have username and password so that only authorized users can push an image to it. I am also not able to list all the images present in private registry, all document says running below command will list it localhost:5000/v1/search but it gives a blank json response as: { "num_results": 0, "query": "", "results": [] } How to resolve this? Thanks, Yash 回答1: An answer to your

Unable to push a plugin using docker plugin push command

喜欢而已 提交于 2019-12-31 00:01:48
问题 I am trying to develop a V2 plugin. I am able to to use the 'docker plugin create' and 'docker plugin enable' commands with my plugin configuration. However the 'docker plugin push' command fails with the following error [root@localhost plugin]# docker plugin push adityadani/pxd-plugin Error response from daemon: errors: denied: requested access to the resource is denied unauthorized: authentication required Here is my docker version Client: Version: 1.13.0-rc4 API version: 1.25 Go version:

Kubernetes: --image-pull-policy always does not work

笑着哭i 提交于 2019-12-30 06:05:26
问题 I have a Kubernetes deployment which uses image: test:latest (not real image name but it's the latest tag). This image is on docker hub. I have just pushed a new version of test:latest to dockerhub. I was expecting a new deployment of my pod in Kubernetes but nothing happends. I've created my deployment like this: kubectl run sample-app --image=`test:latest` --namespace=sample-app --image-pull-policy Always Why isn't there a new deployment triggered after the push of a new image? 回答1:

How to push a docker image with README file to docker hub?

旧巷老猫 提交于 2019-12-30 05:55:16
问题 I am trying to push a docker image to my private repo on docker hub. However, I do see that there is an "Information" section on the Docker Hub which I want to update with useful information about my image. I am wondering if I can push a README.md file and Docker Hub can parse this file and update the "Information" section with this. I am not sure if I should embed the README.md in my image for this to work? 回答1: Docker Hub will try to parse your Readme.md iff you're doing an "Automated Build

In Docker Hub Is it possible to build an automated build for an Arm Image

为君一笑 提交于 2019-12-25 00:16:10
问题 In Docker Hub website Is it possible to build an automated build for an Arm Image ? I have modified my existing DockerFile to use an Arm base image, but it fails on the next line when it tries to run the apk command with exec format error . So it looks like Docker Hub is trying to build as Intel despite base image being built for Arm. Is it possible to build Arm image with Docker Hub website or not ? If not can anyone provide succint instructions on how to build Arm Image from my Dockerfile

Why doesnt this regex match this string in docker automated builds

蓝咒 提交于 2019-12-25 00:08:31
问题 Can someone please help me understand why this Regex: (^(?!(master|stage|develop)$).*) Does not match this string: SBSS-001-WilLTest In the Branch selector, but it matches just fine in every other regex program I’ve tried: https://regexr.com/4di8b 回答1: Unfortunately the regex matcher used doesn't support negative lookaheads ( ?! ). There is a thread here regarding the decision to not support lookaheads in the default Go regex engine: https://groups.google.com/forum/#!topic/golang-nuts

Resizing Docker containers

为君一笑 提交于 2019-12-23 14:55:13
问题 I am trying to see if size of each docker container can be limited through some configuration. Following this , I am able to increasing the size of a running container from 10G. Can I shrink it? Trying to shrink threw an error saying online shrinking not supported . Ideally, I am looking for options to configure and set default container size which containers will inherit when getting created. Docker doc on devicemapper suggested --storage-opt while starting docker daemon. But it does not

Dockerhub automated build fails, “not a directory” when adding file

╄→гoц情女王★ 提交于 2019-12-23 11:49:24
问题 I am trying to use docker hub to automatically build something that builds fine locally. It fails saying: Build process failed: stat /var/lib/docker/aufs/mnt/1be9db483fa6f3de2596b5261e7c450de8df503185e579278396f14ba179c257/bin/run.sh: not a directory You can view the build itself here: https://hub.docker.com/r/zbyte64/rethinkdb-tlsproxy/builds/bjclhq33kgwxxvn6nbfsgyh/ run.sh is in the same directory as Dockerfile , it seems the build path on dockerhub is different then where it stores the

Error running containers with docker-compose, error pulling images from my private repo in dockerhub

非 Y 不嫁゛ 提交于 2019-12-22 08:25:09
问题 I have 3 images pushed on my private repository in docker hub. Locally, the way I've always run the 3 images is via docker-compose up -d, and it works. Now I'm trying to run this images in a different server so I pushed them in a private repository in docker hub. So in order to run them in the new server this is what I do: 1- I run docker login with my docker hub credentials WARNING! Your password will be stored unencrypted in /home/user/.docker/config.json. Configure a credential helper to

Docker automated build shows empty Dockerfile

笑着哭i 提交于 2019-12-22 06:52:39
问题 I have created a Dockerfile here and set up automated build for it on the docker hub, but nothing seems to happen. The build just shows "pending" and the Dockerfile on docker hub is empty. What am I doing wrong? 回答1: The Dockerfile on the hub gets updated after the build runs. Also, the pending for the build means it just hasn't run yet. Sometimes it takes a while. Do you have your github account Linked in the Settings section of the Docker repository? You can reach the status page to see if