Fabrice Flore-Thébault
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- sidebar_position: 3 title: Registries description: Working with container registries tags: [podman-desktop, containers] keywords: [podman desktop, podman, containers, registries] hide_table_of_contents: false --- # Setting up container registries ## Overview Podman Desktop allows you to configure Podman container registries from its graphical user interface: no need to use the command line interface. ### Who is this for If you are a developer who deals with containers, often finds yourself pulling and pushing container images – this tutorial is tailor-made for you! ### What will you gain By the end of this tutorial, you'll be able to: - Set up a pre-configured container registry. - Set up a custom container registry. - Set up a custom container registry with an insecure certificate, such as a self-signed certificate. - Verify your registry is properly configured. - Change your registry credentials. - Remove a registry configuration. - Understand how Podman Desktop and Podman are handling the registry configuration. ## Before you start Before you start the tutorial, you should: - Have a running Podman environment: - Podman machine on Windows and macOS. - Native Podman on Linux. - Get authentication details for your container registry: - Registry URL. - User name. - Password or OAuth secret. ## Setting up a pre-configured container registry To ease usage of the most popular container registries, Podman Desktop has pre-configured registries, including: - Docker Hub - Red Hat Quay - GitHub - Google Container Registry If your container registry is in this list, follow the steps: 1. Go to **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**. 2. In your registry line, click **Configure**. 3. Enter your registry credentials: ![Authenticating to a pre-configured registry](img/authenticating-to-a-preconfigured-registry.png) 1. **Username**: Enter your user name. 2. **Password**: Enter your password or OAuth secret. 3. Click **Login**. Podman Desktop logs Podman in with the provided credentials. If you enter the wrong credentials, you see an error message: enter the correct credentials, and click **Login** again. ## Setting up a custom container registry You have a custom container registry, or one that is not available in the pre-configured list: we have got you covered. Follow the steps: 1. Go to **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**. 1. Click **<icon icon="fa-solid fa-plus-circle" size="lg" /> Add registry** at the top right corner of the screen. 1. Enter your registry details: ![Adding a custom registry](img/adding-a-custom-registry.png) 1. **Registry Location**: Enter your repository URL, such as `https://myregistry.tld`. 2. **Username**: Enter your user name. 3. **Password**: Enter your password or OAuth secret. 4. Click **Login**. Podman Desktop logs Podman in with the provided credentials. If you enter the wrong credentials, you see an error message: enter the correct credentials, and click **Login** again. ## Setting up a custom container registry with an insecure certificate If your registry has an insecure certificate, such as a self-signed certificate, you see a warning when setting up the registry. ![Podman Desktop Registry Warning](img/registry-warning-insecure.png) 1. In the **Invalid Certificate** window, click **Yes** to add the registry anyway. 1. Edit the registry configuration file on your host. Create the file if does not exists. - Windows: `$HOME/.config/containers/registries.conf` - macOS: `$HOME/.config/containers/registries.conf` - Linux (rootless): `$HOME/.config/containers/registries.conf` - Linux (rootful): `/etc/containers/registries.conf` For each insecure registry, add a new `[[registry]]` section defining: - `location =`: your registry URL. - `insecure = true`: accept the insecure certificate. For example, if your registry location is `http://registry.example.com`, add the following lines: ```toml [[registry]] location = "registry.example.com" insecure = true ``` 1. Restart Podman to apply the changes. - Windows and macOS 1. Go to **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Resources**. 2. Restart the Podman machine. - Linux (rootful) - Restart Podman. ```shell-session $ sudo systemctl restart podman ``` - Linux (rootless) - Stop all Podman processes. ```shell-session $ pkill podman ``` ## Verifying your registry is properly configured To verify your registry has been properly configured, you can do the following steps: 1. In **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**, the line with your registry has content in the Username and Password column, and action icons replacing the Configure button. 1. Pull a private image from the registry. 1. Get the name of a private image stored in 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. Go to **Images**. 1. Click **Pull an image**. 1. On the **Image to Pull** screen: 1. **Image to pull**: Enter the image name. 1. Click Pull image. 1. Click Done. 1. Push an image to the registry: 1. Get the fully qualified image name that your registry requires, such as `quay.io/my-repository/my-image`, `ghcr.io/my-repository/my-image`, or `docker.io/my-repository/my-image`. 1. Go to **Images**. 1. Click **Build an image**. 1. On the **Build Image from Containerfile** screen 1. **Containerfile path**: select the Containerfile or Dockerfile to build. 2. **Image Name**: enter the fully qualified image name that your registry requires. 3. Click Build. 4. Click Done. 1. On your image line, click **<Icon icon="fa-solid fa-ellipsis-v" size="lg" />**. The contextual menu has a **Push Image to _your registry_** entry. ## Changing your registry credentials To change your registry credentials, you can do the following steps: 1. Go to **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**. 1. On your registry line, click **<Icon icon="fa-solid fa-ellipsis-v" size="lg" />**. 1. Click **Edit password**. 1. Enter your credentials in the **Username** and **Password** fields, and click **Login**. Podman Desktop logs Podman in with the updated credentials. ## Removing a registry To remove your registry, you can do the following steps: 1. Go to **<icon icon="fa-solid fa-cog" size="lg" /> Settings > Registries**. 1. On your registry line, click **<Icon icon="fa-solid fa-ellipsis-v" size="lg" />**. 1. Click Remove. Podman Desktop removes the registry from the settings, and logs Podman out from the registry. ## Understanding the registry configuration Podman Desktop stores the authentication (auth.json) and registry (registries.conf) configuration files directly on your host. The Podman machine mounts the configuration files to access it. When you delete the Podman machine, the registry configuration is not lost: it stays on your host. ## Next steps Consider completing some other common tasks that depend registries: - Pulling an image. - Pushing an image to a registry.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully