Error : Unable to upload into a virtual repository without default local deployment configured (Docker artifactory)
Asked Answered
C

1

5

I am trying to push a docker image to a repository.

But I am constantly getting the following error - enter image description here

Steps followed -

  1. Logged in to " docker login https://docker.wdf.sap.corp:50000/ "

  2. Got authorized with my username/password

  3. Created a local docker image

  4. Did a docker push. - '' docker push docker.wdf.sap.corp:50000/taaas/ws-python:latest ''

Chevet answered 3/1, 2019 at 14:59 Comment(0)
B
8

Most likely the virtual repository you're trying to push to only has remote repositories configured as the target to be able to push to. I tried to replicate your issue on my own Artifactory instance using a two different docker repositories (both virtual):

For the first I have both local and remote repositories configured (the configured targets are docker-local, bintray-docker-remote, docker-remote)

$ docker tag mynewimage:latest myartifactory.server/docker/mynewimage
$ docker push myartifactory.server/docker/mynewimage
The push refers to repository [myartifactory.server/docker/mynewimage]
7bff100f35cb: Layer already exists
latest: digest: sha256:3d2e482b82608d153a374df3357c0291589a61cc194ec4a9ca2381073a17f58e size: 528

The second repository only has remote repositories configured (docker-remote)

$ docker tag mynewimage:latest myartifactory.server/newdocker/mynewimage:latest
$ docker push myartifactory.server/newdocker/mynewimage:latest
The push refers to repository [myartifactory.server/newdocker/mynewimage]
7bff100f35cb: Retrying in 1 second
unknown: Unable to upload into a virtual repository without default local deployment configured.

So with the second one I have the exact same issue as you have. You can see the configured repositories on your Artifactory server on https://your-artifactory-server/artifactory/webapp/#/admin/repositories/virtual

Biggers answered 3/1, 2019 at 16:57 Comment(1)
Thanks for the response.Chevet

© 2022 - 2024 — McMap. All rights reserved.