-->

DEVOPSZONES

  • Recent blogs

    How to Install Podman on Windows 10

     

    WSL Installation

    You can now install everything you need to run Windows Subsystem for Linux (WSL) by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine.

    Pre Req: You need to have at least Windows 10 build 18917.

    How to Check?

    Check that in My computer -> Properties


    Windows_10_build
    Windows_10_build

    Set the default version to 2:

    To set the default version to WSL 1 or WSL 2 when a new Linux distribution is installed, use the command: wsl --set-default-version <Version#>, replacing <Version#> with either 1 or 2.

    set_default_wsl2_version
    set_default_wsl2_version

     

    Then run this command.

    wsl --install -d Ubuntu

    Install_ubuntu_wsl
    Install_ubuntu_wsl


    This command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install a Linux distribution for you. By default, the installed Linux distribution will be Ubuntu. This can be changed using the -d flag.

    ·       To see a list of available Linux distributions available for download through the online store, enter: wsl --list --online or wsl -l -o.


    Install_ubuntu_wsl1
    Install_ubuntu_wsl1



    How to Upgrade version from WSL 1 to WSL 2 on a previously installed Linux distributions: https://www.devopszones.com/2022/02/how-to-upgrade-version-from-wsl-1-to.html

    Set up your Linux user info

    Once you have installed WSL, you will need to create a user account and password for your newly installed Linux distribution. 

    create user
    create user

    Add the Podman PPA and install Podman

     

    The easiest way to begin the installation of Podman on Ubuntu is to use the Kubic project.

    $ sudo su -

    #. /etc/os-release

    # sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"

    # wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key -O Release.key

    # apt-key add - < Release.key

    # apt-get update -qq

    # apt-get -qq -y install podman

    # mkdir -p /etc/containers

    # echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | tee /etc/containers/registries.conf


    Install_podman_repo
    Install_podman_repo


    Install podman
    Install podman

    Run the container to make sure podman works fine.

    podman run hello-world

    hello-world
    hello-world container

    Run podman info

    Podman info
    Podman Info


    No comments