Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Gateway API
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[podman] Run a Docker container without using Docker

Posted on July 15, 2026 By nim No Comments on [podman] Run a Docker container without using Docker
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 start
A031 ~ % 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 successfully

Check podman đã sẵn sàng hay chưa?

podman info

giờ để 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
2b88c846c5f16f791584e0136f2d34799609337e013dfac4bd7ab51389aa60fb

Xong 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
7f3c32d9c1a8b371c9527155092029c263d2c09f6545181b399a0c12efe570ac

xoá container:

A031 ~ % podman rm -f headlamp
headlamp

Uncategorized

Post navigation

Previous Post: Transform a Google Drive to S3 AWS

More Related Articles

[Sidecar/Kubernestes] Inject sidecar into a Pod automatically Kubernetes
[Helm-chart] Declare “template” in helm-chart – Kubernetes Helm Chart
[Jenkins] Share Libraries 6: Closures Jenkins
[K8S] Reseach VPA on K8S Uncategorized
Policies as Code in Kubernetes using jsPolicy Kubernetes
Uncategorized

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [podman] Run a Docker container without using Docker July 15, 2026
  • Transform a Google Drive to S3 AWS June 12, 2026
  • [Rancher/EKS] Rancher from v2.12.x can not work on eks cluster. April 15, 2026
  • [Telegram/Openclaw] Configure openclaw bot in a Telegram group. March 31, 2026
  • Tutorial: Gateway API + Traefik + oauth2-proxy (Microsoft Entra ID) March 30, 2026

Archives

  • July 2026
  • June 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • AI
    • OpenClaw
  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Gateway API
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2026 NimTechnology.