A031 ~ % brew install podman
✔︎ JSON API packages.arm64_tahoe.jws.json Downloaded 15.3MB/ 15.3MB
==> Would install 1 formula:
podman
==> Downloading https://ghcr.io/v2/homebrew/core/podman/manifests/6.0.1_1
################################################################################################################# 100.0%
==> Fetching downloads for: podman
✔︎ Bottle podman (6.0.1_1) Downloaded 44.9MB/ 44.9MB
==> Pouring podman--6.0.1_1.arm64_tahoe.bottle.tar.gz
==> Caveats
In order to run containers locally, podman depends on a Linux kernel.
One can be started manually using `podman machine` from this package.
To start a podman VM automatically at login, also install the cask
"podman-desktop".
==> Summary
🍺 /opt/homebrew/Cellar/podman/6.0.1_1: 218 files, 92.4MB
==> Running `brew cleanup podman`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> Caveats
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
start podman
A031 ~ % podman machine init
Looking up Podman Machine image at quay.io/podman/machine-os:6.0 to create VM
Getting image source signatures
Copying blob e88abead13f0 done |
Copying config 44136fa355 done |
Writing manifest to image destination
e88abead13f0fcd615415f430a0a3bda8c38db754d39dbc856d3e9109c5f5542
Extracting compressed file: podman-machine-default-arm64.raw: done
Machine init complete
To start your machine run:
podman machine startA031 ~ % podman machine start
Starting machine "podman-machine-default"
This machine is currently configured in rootless mode. If your containers
require root permissions (e.g. ports < 1024), or if you run into compatibility
issues with non-podman clients, you can switch using the following command:
podman machine set --rootful
API forwarding listening on: /var/folders/5f/53rlmr4j5ks9gg8c2mtph6500000gp/T/podman/podman-machine-default-api.sock
The system helper service is not installed; the default Docker API socket
address can't be used by podman. If you would like to install it, run the following commands:
sudo /opt/homebrew/Cellar/podman/6.0.1_1/bin/podman-mac-helper install
podman machine stop; podman machine start
You can still connect Docker API clients by setting DOCKER_HOST using the
following command in your terminal session:
export DOCKER_HOST='unix:///var/folders/5f/53rlmr4j5ks9gg8c2mtph6500000gp/T/podman/podman-machine-default-api.sock'
Machine "podman-machine-default" started successfullyCheck podman đã sẵn sàng hay chưa?
podman infogiờ để run container thì thường tự pull image về trước
A031 ~ % podman pull --tls-verify=false \
ghcr.io/headlamp-k8s/headlamp:latest
Trying to pull ghcr.io/headlamp-k8s/headlamp:latest...
Getting image source signatures
Copying blob sha256:2d4e545caeeb3de3c689c1dcd9cd3da6ebdbdf291819d3e28b2d87b2bfd82d06
Copying blob sha256:0fdb290a51cdd7f2e3d104c9cec21d017f1436ad756cc52cccd4c72c1cf99b74
Copying blob sha256:1060acdfc697234c90cb32663f468cbb381be3d54595482d6e39685e4d248252
Copying blob sha256:8c2d9fed744ca43cb556b3f347cde119eb01020e0b025fbe5176f5ca784a3b03
Copying blob sha256:aa6ddcb09ebf8303a74a4aed7691b81f2987d1ac61410dab9e6d3fed11ce24e3
Copying blob sha256:d17f077ada118cc762df373ff803592abf2dfa3ddafaa7381e364dd27a88fca7
Copying blob sha256:37c1d19847d812c5cc1dbe2ab7f4b5b1682586356783108b14d298332f0f78ea
Copying config sha256:2b88c846c5f16f791584e0136f2d34799609337e013dfac4bd7ab51389aa60fb
Writing manifest to image destination
2b88c846c5f16f791584e0136f2d34799609337e013dfac4bd7ab51389aa60fbXong rồi run container bằng podman
A031 ~ % podman run -d \
--name headlamp \
--restart=unless-stopped \
-p 127.0.0.1:4466:4466 \
-e KUBECONFIG=/home/headlamp/.config/Headlamp/kubeconfigs/config \
-v /Users/thangtran/teleport-kubeconfig.yaml:/home/headlamp/.config/Headlamp/kubeconfigs/config:ro \
ghcr.io/headlamp-k8s/headlamp:latest
7f3c32d9c1a8b371c9527155092029c263d2c09f6545181b399a0c12efe570acxoá container:
A031 ~ % podman rm -f headlamp
headlamp