Skip to content

Commit dbc954c

Browse files
Bharath KaimalBharath Kaimal
authored andcommitted
update to image registry
1 parent 4b15368 commit dbc954c

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

docs/containers/imageregistry.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
11
# Image Registries
22

3-
## Coming Soon
3+
A registry is a repository used to store and access container images. Container registries can support container-based application development, often as part of DevOps processes.
4+
5+
Container registries save developers valuable time in the creation and delivery of cloud-native applications, acting as the intermediary for sharing container images between systems. They essentially act as a place for developers to store container images and share them out via a process of uploading (pushing) to the registry and downloading (pulling) into another system, like a Kubernetes cluster.
6+
7+
[Learn More :fontawesome-solid-globe:](https://www.redhat.com/en/topics/cloud-native-apps/what-is-a-container-registry){ .md-button target="_blank"}
8+
9+
=== "Tutorial"
10+
11+
Make sure you have Docker Desktop installed and up and running.
12+
13+
``` Bash title="Login to Quay"
14+
docker login quay.io
15+
Username: your_username
16+
Password: your_password
17+
Email: your_email
18+
```
19+
20+
First we'll create a container with a single new file based off of the busybox base image:
21+
``` Bash title="Create a new container"
22+
docker run busybox echo "fun" > newfile
23+
```
24+
The container will immediately terminate, so we'll use the command below to list it:
25+
```
26+
docker ps -l
27+
```
28+
The next step is to commit the container to an image and then tag that image with a relevant name so it can be saved to a respository.
29+
30+
Replace "container_id" with your container id from the previous command.
31+
``` Bash title="Create a new image"
32+
docker commit container_id quay.io/your_username/repository_name
33+
```
34+
Be sure to replace "your_username" with your quay.io username and "respository_name" with a unique name for your repository.
35+
36+
Now that we've tagged our image with a repository name, we can push the respository to Quay Container Registry:
37+
``` Bash title="Push the image to Quay"
38+
docker push quay.io/your_username/repository_name
39+
```
40+
Your respository has now been pushed to Quay Container Registry!
41+
42+
To view your repository, click on the button below:
43+
44+
[Repositories](https://quay.io/repository/){ .md-button target="_blank"}
45+
46+

0 commit comments

Comments
 (0)