2.2. Creating an image repository via docker or podman
Assuming you have the proper credentials, pushing an image to a repository that does not yet exist in your Red Hat Quay instance will create that repository as it pushes the image to that repository. Either the docker
or podman
commands will work for these examples.
Tag the image: With an image available from
docker
orpodman
on your local system, tag that image with the new repository name and image name. Here are examples for pushing images to Quay.io or your own Red Hat Quay setup (for example, reg.example.com). For the examples, replace namespace with your Red Hat Quay user name or organization and repo_name with the name of the repository you want to create:docker tag myubi-minimal quay.io/namespace/repo_name docker tag myubi-standard reg.example.com/namespace/repo_name
# docker tag myubi-minimal quay.io/namespace/repo_name # docker tag myubi-standard reg.example.com/namespace/repo_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Push to the appropriate registry. For example:
docker push quay.io/namespace/repo_name docker push reg.example.com/namespace/repo_name
# docker push quay.io/namespace/repo_name # docker push reg.example.com/namespace/repo_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
To create an application repository, follow the same procedure you did for creating a container image repository.