Questions tagged [dockerhub]

Docker Hub is a product by Docker Inc built on top of the open source Docker Registry to distribute Docker images.

Docker Hub is a product by Docker Inc built on top of the open source Docker Registry to distribute Docker images.

Notable features:

  • Distribution of images (being a registry)
  • Open source images are free
  • Search for images
  • Distribution of the Docker official images
926 questions
359
votes
9 answers

How to create User/Database in script for Docker Postgres

I have been trying to set up a container for a development postgres instance by creating a custom user & database. I am using the official postgres docker image. In the documentation it instructs you to insert a bash script inside of the…
pech0rin
  • 4,588
  • 3
  • 18
  • 22
271
votes
1 answer

How to pass arguments to a Dockerfile?

I am using RUN instruction within a Dockerfile to install a rpm RUN yum -y install samplerpm-2.3 However, I want to pass the value "2.3" as an argument. My RUN instruction should look something like: RUN yum -y install samplerpm-$arg where…
meallhour
  • 13,921
  • 21
  • 60
  • 117
122
votes
8 answers

Docker official registry (Docker Hub) URL

Docker Hub official website has been moved to https://registry.hub.docker.com from https://hub.docker.com/. If I try to docker pull images from URL like: docker pull registry.hub.docker.com/busybox it shows: registry.hub.docker.com/busybox: this…
Ertuğrul Altınboğa
  • 2,187
  • 4
  • 17
  • 25
120
votes
6 answers

Is it possible for image to have multiple tags?

When I am pushing new image to repo I would like it to have two tags for example 0.2 and latest. This would allow to always pull latest image version by using latest tag and a specific version by using 0.2 tag for example. Is it possible with…
user606521
  • 14,486
  • 30
  • 113
  • 204
102
votes
13 answers

Check if image:tag combination already exists on docker hub

As part of a bash script, I want to check if a particularly docker image:tag combination exists on docker hub. Also, it will be a private repository. i.e. the pseudocode would be like: tag = something if image:tag already exists on docker hub: …
rgareth
  • 3,377
  • 5
  • 23
  • 35
74
votes
1 answer

do I need to manually tag "latest" when pushing to docker public repository?

Suppose I have an image me/mystuff:v0.0.1 I find if I push it to the repository: docker push me/mystuff:v0.0.1 latest is not created, and on a pull from another machine it will complain, e.g. ssh me@faraway (faraway) $ docker run -it me/mystuff…
Paul
  • 26,170
  • 12
  • 85
  • 119
68
votes
5 answers

Docker : exec /usr/bin/sh: exec format error

I created a custom docker image and push it to docker hub but when I run it in CI/CD it gives me this error. exec /usr/bin/sh: exec format error Where : Dockerfile FROM ubuntu:20.04 RUN apt-get update RUN apt-get install -y…
rkevx21
  • 2,441
  • 5
  • 19
  • 40
53
votes
7 answers

Docker login auth token

I'm trying to get docker login auth from ~/.docker/config.json file. But I can't see auth token in my config.json file. Here is my docker version. docker version Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git…
Gayan
  • 1,425
  • 4
  • 21
  • 41
49
votes
10 answers

Remove an image tag from Docker Hub?

I was unable to find resources to understand how Docker Hub images can be managed. I have an image tagged with V0.0.1 and built a new one tagged V0.0.2. Now I want to remove the V0.0.1 image as the new version is built differently and I don't want…
user4980720
46
votes
4 answers

How to pull image from dockerhub in kubernetes?

I am planning to deploy an application in my kubernetes-clustering infra. I pushed image to dockerhub repo. How can I pull image from dockerhub?
Snipper03
  • 1,484
  • 4
  • 15
  • 29
44
votes
7 answers

Docker Hub Automated Build - Tagging

When specifying an Automated Build on Docker Hub, I can set some settings (Type ('Branch' or 'Tag'), Name, Dockerfile Location and Docker Tag Name). But unfortunately I didn't find any documentation for those. I assume, that when I choose Type…
MirkoMachine
  • 501
  • 1
  • 5
  • 6
43
votes
2 answers

Docker image layer: What does `ADD file: in /` mean?

In Docker Hub images there are lists of commands that being run for each image layer. Here is a golang example. Some applications also provide their Dockerfile in GitHub. Here is a golang example. According to the Docker Hub image layer, ADD…
42
votes
2 answers

What is a container manifest?

The only doc on this topic seems to assume I already know what a manifest is, the problem it solves, and how it fits into the docker ecosystem. After reading the doc I'm still not sure how manifests actually work. My private GCR contains manifest…
red888
  • 27,709
  • 55
  • 204
  • 392
39
votes
4 answers

Getting "ErrImageNeverPull" in pods

Am using minikube to test out the deployment and was going through this link And my manifest file for deployment is like apiVersion: extensions/v1beta1 kind: Deployment metadata: name: webapp spec: replicas: 1 template: metadata: …
Prateek Naik
  • 2,522
  • 4
  • 18
  • 38
38
votes
14 answers

docker push error "denied: requested access to the resource is denied"

This error occurs when trying to push an image to the public repository on Docker Hub. There have been no issues with other registries I have tried. I have looked at numerous sites, blogs including StackOverflow and there is still no clear…
SamDevx
  • 2,268
  • 4
  • 32
  • 47
1
2 3
61 62