Push content to a RepositoryΒΆ

Users can push images to the repositories hosted by the Container Registry. Only the users who are logged in to the registry are allowed to perform such an action. Find below a complete example of pushing a tagged image.

Note

Having disabled the token authentication, only users with staff privileges (i.e., administrators) are allowed to push content to the registry.

$ podman tag d21d863f69b5 localhost:24817/test/this:mytag1.8
$ podman login -u user -p password localhost:24817
  Login Succeeded!
$ podman push d21d863f69b5 localhost:24817/test/this:mytag1.8
  Getting image source signatures
  Copying blob 210dda196ec1 done
  Copying config d21d863f69 done
  Writing manifest to image destination
  Storing signatures

$ http GET $BASE_ADDR/v2/test/this/tags/list
  HTTP/1.1 200 OK
  Allow: GET, HEAD, OPTIONS
  Connection: close
  Content-Length: 40
  Content-Type: application/json
  Date: Wed, 03 Jun 2020 18:25:46 GMT
  Docker-Distribution-API-Version: registry/2.0
  Server: gunicorn/20.0.4
  Vary: Accept
  X-Frame-Options: SAMEORIGIN

  {
    "name": "test/this",
    "tags": [
        "mytag1.8"
    ]
  }

Note

Content is pushed to a push repository type. A push repository does not support mirroring of the remote content via the Pulp API.

Note

Rollback to the previous repository versions is not possible with a push repository. Its latest version will always be served.