-->

DEVOPSZONES

  • Recent blogs

    How to Install Podman MacOS/Ubuntu/CentOS/RHEL/Debian/Fedora/OpenSUSE

     Oracle Linux 8 (OL8) includes PodmanBuildah and Skopeo in the "ol8_appstream" repository. On this article I'll describe how to install Podman on different OS'es.  RHEL 8 / CentOS 8 has dropped official support for Docker as container runtime. Instead, Red Hat has been working on libpod (Podman’s container management library). Most container related tools on CentOS 8 are available on the module called container-tools.

    CetsOS 8 / RHEL 8 

    Enable EPEL repository

    Please install EPEL repository as it would be require while installing Powertools.


    Enable PowerTools  repository

    dnf config-manager --set-enabled powertools

    Install Podman

    Update your system.

    dnf -y update
    Install podman

    dnf install -y @container-tools

    Check the Podman Version


    [root@podman ~]podman version
    Version:      3.3.1
    API Version:  3.3.1
    Go Version:   go1.16.7
    Built:        Wed Nov 10 15:32:15 2021
    OS/Arch:      linux/amd64
    [root@podman ~]
    

    Deploy a Container using the Podman


    [root@podman ~]podman run hello-world
    Resolved "hello-world" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
    Trying to pull docker.io/library/hello-world:latest...
    Getting image source signatures
    Copying blob 2db29710123e done
    Copying config feb5d9fea6 done
    Writing manifest to image destination
    Storing signatures
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    To generate this message, Docker took the following steps:
     1. The Docker client contacted the Docker daemon.
     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
        (amd64)
     3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
     4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.
    
    To try something more ambitious, you can run an Ubuntu container with:
     $ docker run -it ubuntu bash
    
    Share images, automate workflows, and more with a free Docker ID:
     https://hub.docker.com/
    
    For more examples and ideas, visit:
     https://docs.docker.com/get-started/
    
    [root@podman ~]podman ps -a
    CONTAINER ID  IMAGE                                 COMMAND     CREATED         STATUS                     PORTS       NAMES
    dd609ba99f45  docker.io/library/hello-world:latest  /hello      39 seconds ago  Exited (0) 39 seconds ago              wonderful_mendel
    [root@podman ~]
    
    MacOS


    The Mac client is available through Homebrew:

    brew install podman
    

    To start the Podman-managed VM:

    podman machine init
    podman machine start
    

    You can then verify the installation information using:

    podman info

    Debian

    The podman package is available in the Debian 11 (Bullseye) repositories and later.

    sudo apt-get -y install podman
    

    Fedora

    sudo dnf -y install podman

    openSUSE

    sudo zypper install podman

    Ubuntu

    The podman package is available in the official repositories for Ubuntu 20.10 and newer.

    # Ubuntu 20.10 and newer
    sudo apt-get -y update
    sudo apt-get -y install podman

    No comments