I am new user of docker and i try to create my first image as a test
https://hub.docker.com/r/abdelmun3m/munemdockertest/
put i get this error while i am trying to pull my image and add code
Using default tag: latest
Error response from daemon: manifest for abdelmun3m/munemdockertest:latest not found
what is the problem !?
There are no images in your repository.
You need to either tag your image with your username as a prefix when building it:
docker build -t abdelmun3m/munemdockertest .
Or tag an existing image:
docker tag <existing image name> abdelmun3m/munemdockertest
then log into docker hub
docker login
and then push that image
docker push abdelmun3m/munemdockertest
See the documentation for more details.
Related
I'm trying to push a new image to docker hub when adding tags.
Initially the push works ok:
docker build -t myimage .
docker tag myimage myuser/myrepo:latest
docker push myuser/myrepo:latest
but after i add another tag it didn't let me:
docker tag myuser/myrepo:latest myuser/myrepo:another
i got:
denied: requested access to the resource is denied
it's the same when i try to pull my repo:
docker pull nicoplw/culo2:latest
i got:
Error response from daemon: pull access denied for nicoplw/culo2,
repository does not exist or may require 'docker login': denied:
requested access to the resource is denied
Note that my repo is in docker hub after i initially pushed it.
I tried with
docker logout
docker login
and also with
docker login -u username -p password
i always get "login successfull"
i tried every stackoverflow and docker forums question but i couldn't make it work. What am i missing here?
thanks!
It happens to be that you can only have 1 private repository.
If you create a second one it will somehow be created, but if you try to pull or push it will give this pull/push login error.
Solution: delete all your repositories if you want to push a new one, or make it public.
I think the issue is with your push command
Can you revisit your command or can you share the exert command which you are using
I'm trying to push an image that is hosted in another project with that command:
docker login [first account with service-account]
docker pull gcr.io/xxx/xxx/xxx:1.0.0
docker login [other service-account]
docker push gcr.io/yyy/yyy/yyy:1.0.0
and that give me that error:
An image does not exist locally with the tag: gcr.io/yyy/yyy/yyy
How I can fix it? I altro tried to tag the image locally but has now worked
You can simply tag your XXX Docker image as YYY, for example:
# Pull image XXX
docker login [first account with service-account]
docker pull gcr.io/xxx/xxx/xxx:1.0.0
# Tag it as YYY
docker tag gcr.io/xxx/xxx/xxx:1.0.0 gcr.io/yyy/yyy/yyy:1.0.0
# Push it on the other account
docker login [other service-account]
docker push gcr.io/yyy/yyy/yyy:1.0.0
Your command fails because Docker does not recognize that gcr.io/yyy/yyy/yyy:1.0.0 is the same as gcr.io/xxx/xxx/xxx:1.0.0 - you must specifically tell-it so by tagging such as above.
I am trying to push the docker image created on my local to Amazon ECR repository using below command:-
docker push <<accountid>>.dkr.ecr.<<region>>.amazonaws.com/api:latest
give below error:-
tag does not exist: <<accountid>>.dkr.ecr.<<region>>mazonaws.com/api:latest
You did not tag your image correctly. Just follow the simple steps mentioned in your ECR repo after clicking view push command .
General command is this to tag your image
docker tag yourLocalDockerImage <accountId>.dkr.ecr.<region>.amazonaws.com/<repoName>:<tag>;
I have a docker image:
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
elucidbio/capcompute local a5ed348be9f8 About a minute ago 2.27GB
But when I try and start it, it fails:
$docker run --name capcompute elucidbio/capcompute
Unable to find image 'elucidbio/capcompute:latest' locally
docker: Error response from daemon: repository elucidbio/capcompute not found: does not exist or no pull access.
What stupid thing am I missing here?
Your tags dont match. Your local image tag is "local" but its looking for "latest" because you didn't specify a tag. To run it you should append the tag of "local".
docker run --name capcompute elucidbio/capcompute:local
I've just come over from tutum and and am trying to deploy to a docker cloud repository. I've created the repository and have tagged an existing image:
docker tag deploy foo/rtb
When I attempt to push my tagged image up like so:
docker push foo/rtb
I get this:
The push refers to a repository [docker.io/foo/rtb] (len: 0)
18118bb6b8ef: Preparing
unauthorized: access to the requested resource is not authorized
The repository exists and I've logged in to docker. Is there something I'm missing?
Interestingly enough, if I try to delete the image I get an error like this:
Error response from daemon: conflict: unable to delete 18118bb6b8ef
(must be forced) - image is referenced in one or more repositories
Error: failed to remove images: [18118bb6b8ef]
I had been using docker 1.9.1. That's the version in the Fedora 23 repo.
The kind folks at docker tech support recommended I upgrade to the latest 1.10.3
Upgrading then doing
docker logout
followed by
docker login
fixed everything up.
Did you tag your image ?
docker build --tag docker.io/<yourdockerhubname>/<appname> .
docker build --tag docker.io/moskalr/rtb .
docker push docker.io/<yourdockerhubname>/<appname>
docker push docker.io/moskalr/rtb
the push should respond with something which mentions the dockerhub image name