🌑

帮帮技术站

podman windows环境安装

  1. 下载cli安装

    1
    2
    3
    4
    5
    6
    7
    8
    https://podman.io/
    podman cli for windows
    podman desktop for windows

    检测安装是否成功

    podman -v

  2. 初始化

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    podman machine
    podman machine init
    (下载慢)
    Downloading VM image: fedora-podman-amd64-v37.0.34.tar.xz [---------------------------------------] 121.8KiB / 112.2MiB

    手动下载:
    https://github.com/containers/podman-wsl-fedora/releases
    并改名为
    fedora-podman-amd64-v37.0.34.tar.xz
    放在此目录下:C:\Users\admin\.local\share\containers\podman\machine\wsl\cache
  3. 启动

    1
    podman machine start
  4. 使用参考

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21

    podman run ubi8-micro date



    podman run --rm -v c:\Users\User\myfolder:/myfolder ubi8-micro ls /myfolder

    podman search nginx
    podman search nginx --filter=is-official
    podman list
    podman images
    podman ps
    podman run --rm -d -p 6666:80 --name httpd docker.io/library/httpd
    curl http://localhost:6666/ -UseBasicParsing
    podman stop 9127a5deb81c

    podman pull nginx
    podman run --rm -d -p 6666:80 nginx
    curl http://localhost:6666/
    <a href="[/images/license/keymgr.jar](https://www.cnblogs.com/hanfan/p/17318348.html)" target="_blank">使用参考</a>

— Jun 7, 2023

Search