New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: using standard OS tabs for registries docs #4497
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#### Prerequisites | ||
|
||
- Podman. | ||
themr0c marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#### Procedure | ||
|
||
1. Add your insecure registry within **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**. | ||
|
||
![Adding a custom registry](img/adding-a-custom-registry.png) | ||
Check warning on line 9 in website/docs/working-with-containers/registries/_insecure-registry-linux.md GitHub Actions / runner / vale
|
||
|
||
1. Click "Yes" to the insecure registry warning. | ||
|
||
![Podman Desktop Registry Warning](img/registry-warning-insecure.png) | ||
Check warning on line 13 in website/docs/working-with-containers/registries/_insecure-registry-linux.md GitHub Actions / runner / vale
|
||
|
||
1. Open `registries.conf`. | ||
|
||
```shell-session | ||
$ sudo vi /etc/containers/registries.conf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't it in openshift docs / standards that sudo commands use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
``` | ||
|
||
1. Add the insecure registry: Add a new `[[registry]]` section for the URL of the insecure registry you want to use. For example, if your insecure registry is located at `http://registry.example.com`, add the following lines: | ||
|
||
```toml | ||
[[registry]] | ||
location = "registry.example.com" | ||
insecure = true | ||
``` | ||
|
||
If you have multiple registries, you can add one `[[registry]]` block per registry: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
1. Save and exit the file. | ||
|
||
1. Restart Podman. | ||
|
||
```shell-session | ||
$ sudo systemctl restart podman | ||
``` | ||
Comment on lines
+33
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "restart Podman" steps in various Linux procedures (here, proxy) are inconsistent and mostly irrelevant. It deserves its own issue. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#### Prerequisites | ||
|
||
- [A running Podman machine](/docs/onboarding-for-containers/installing-podman). | ||
|
||
#### Procedure | ||
|
||
1. Add your insecure registry within **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**. | ||
|
||
![Adding a custom registry](img/adding-a-custom-registry.png) | ||
Check warning on line 9 in website/docs/working-with-containers/registries/_insecure-registry-windows-macos.md GitHub Actions / runner / vale
|
||
|
||
1. Click "Yes" to the insecure registry warning. | ||
|
||
![Podman Desktop Registry Warning](img/registry-warning-insecure.png) | ||
Check warning on line 13 in website/docs/working-with-containers/registries/_insecure-registry-windows-macos.md GitHub Actions / runner / vale
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. false positive on vale issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bad rule. I opened an issue. And am currently lost in regex: do not match strings starting by img/. The |
||
|
||
1. SSH into the Podman Machine to edit `registries.conf`. | ||
|
||
```shell-session | ||
$ podman machine ssh [optional-machine-name] | ||
``` | ||
|
||
1. Open `registries.conf`. | ||
|
||
```shell-session | ||
$ sudo vi /etc/containers/registries.conf | ||
``` | ||
|
||
1. Add the insecure registry: Add a new `[[registry]]` section for the URL of the insecure registry you want to use. For example, if your insecure registry is located at `http://registry.example.com`, add the following lines: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accidental :? |
||
|
||
```toml | ||
[[registry]] | ||
location = "registry.example.com" | ||
insecure = true | ||
``` | ||
|
||
If you have multiple registries, you can add one `[[registry]]` block per registry. | ||
|
||
1. Save and exit the file. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need this step as it's implied by editing the file you save and exit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That was already in the content. I changed as little content as possible. This might require a new pr with new scope. |
||
|
||
1. Restart Podman by the CLI or through Podman Desktop. | ||
|
||
```shell-session | ||
$ podman machine stop | ||
$ podman machine start | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#### Verification | ||
|
||
1. Go to **<icon icon="fa-solid fa-cloud" size="lg" /> Images**. | ||
1. You can pull a private image from the registry. | ||
1. You can push an image to the registry: | ||
1. Build an image with the fully qualified name required for your registry, such as `quay.io/my-repository/my-image`, `ghcr.io/my-repository/my-image`, `docker.io/my-repository/my-image`, or `my-registry.tld/my-repository/my-image`. | ||
1. On your image line, click **<icon icon="fa-solid fa-ellipsis-v" size="lg" />**. | ||
1. The contextual menu has a **<icon icon="fa-solid fa-arrow-up" size="lg" />Push Image** entry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume it needs to be running? Before the change that was required, and there is a restart in the steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It only needs to be installed. You need to restart any podman process if it exists. I will clarify.