Skip to content

Commit

Permalink
docs: operating system variants in tabs
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
  • Loading branch information
themr0c committed Dec 11, 2023
1 parent af29ef7 commit 1382d2a
Showing 1 changed file with 47 additions and 18 deletions.
65 changes: 47 additions & 18 deletions website/docs/containers/registries/index.md
Expand Up @@ -7,6 +7,9 @@ keywords: [podman desktop, podman, containers, registries]
hide_table_of_contents: false
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Setting up container registries

## Overview
Expand Down Expand Up @@ -115,23 +118,37 @@ If your registry has an insecure certificate, such as a self-signed certificate,

1. Go to a location where you can edit the `registries.conf` file:

- Windows and macOS
<Tabs groupId="operating-systems">
<TabItem value="win" label="Windows">

The configuration file is in the Podman machine: open a terminal in the Podman Machine.
- The configuration file is in the Podman machine: open a terminal in the Podman Machine.

```shell-session
$ podman machine ssh [optional-machine-name]
```

- Linux
</TabItem>
<TabItem value="mac" label="macOS">

The configuration file is in your host: open a terminal with superuser privileges.
- The configuration file is in the Podman machine: open a terminal in the Podman Machine.

```shell-session
$ podman machine ssh [optional-machine-name]
```

</TabItem>
<TabItem value="linux" label="Linux">

- The configuration file is in your host: open a terminal with superuser privileges.

```shell-session
$ sudo su -
```

2. Edit the registry optional configuration file.
</TabItem>
</Tabs>

1. Edit the registry optional configuration file.

```shell-session
# vim /etc/containers/registries.conf`
Expand All @@ -156,26 +173,38 @@ If your registry has an insecure certificate, such as a self-signed certificate,

1. Restart Podman to apply the changes.

- Windows and macOS
<Tabs groupId="operating-systems">
<TabItem value="win" label="Windows">

1. Go to **<Icon icon="fa-solid fa-cog" size="lg" /> Settings > Resources**.
1. Restart the Podman machine.

</TabItem>
<TabItem value="mac" label="macOS">

1. Go to **<Icon icon="fa-solid fa-cog" size="lg" /> Settings > Resources**.
1. Restart the Podman machine.

1. Go to **<Icon icon="fa-solid fa-cog" size="lg" /> Settings > Resources**.
2. Restart the Podman machine.
</TabItem>
<TabItem value="linux" label="Linux (rootless)">

- Linux (rootful)
- Stop all Podman processes.

- Restart Podman.
```shell-session
$ pkill podman
```

```shell-session
$ sudo systemctl restart podman
```
</TabItem>
<TabItem value="linux-rootful" label="Linux (rootful)">

- Linux (rootless)
- Restart Podman.

- Stop all Podman processes.
```shell-session
$ sudo systemctl restart podman
```

```shell-session
$ pkill podman
```
</TabItem>
</Tabs>

## Verifying your registry is properly configured

Expand Down

0 comments on commit 1382d2a

Please sign in to comment.