InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mac tutorials

  • Brew
  • Chrome enable webgl on old macbooks
  • How to change computer display name on Mac
  • How to change default system voice for text-to-speech on Mac
  • How to install drupal on Mac usin MAMP
  • How to remove hard drive icon from mac desktop
  • How to use rrdtool plot traffic from network interface
  • How to view your WiFi password on Mac
  • Mac - change desktop icons size
  • Mac - how to take timed screenshot
  • Mac - how to always show scroll bar
  • Mac - how to change default location for screenshots
  • Mac - how to open apps not from App Store
  • Mac - how to take screenshots
  • Mac - how to use kubernetes with Lima-VM
  • Mac - kubernetes minikube - create deployment
  • Mac - make spotlight search faster
  • Mac - show volume icon on menu bar
  • Mac Command Line
  • Mac Finder
  • Mac Preview
  • Mac m1 - How to Install Kubernetes with kind
  • Mac m1 - How to Install Kubernetes with minikube
  • Mac m1 - minikube - create multi node kubernetes cluster
  • Mac podman quick start guide
  • NestJS Quick start tutorial on Mac
  • NextJS Quick start tutorial on Mac
  • Vagarant quick start guide on Mac
  • Windows on Mac
  • minikube kubernetes - create deployment with multiple replica and load balancer
  • minikube kubernetes - how to access service IP endpoint using curl
  • minikube kubernetes - how to access specific pod IP endpoint using curl
 
  • Home
  • > Tutorials
  • > Mac

Mac podman quick start guide

on Jan 1, 2023

Steps to install podman on mac

  1. Instal podman and podman-desktop
    brew install podman
    brew install podman-desktop
  2. Init and start podman
    podman machine init
    podman machine start
  3. Start podman deskop
  4. Clone alpine_nginx
    git clone http://github.com/baude/alpine_nginx && cd alpine_nginx
  5. Create nginx image using podman build
    podman build -t alpine_nginx .
  6. Run podman
    podman run -dt -p 9999:80 alpine_nginx
  7. Check running containers
    podman ps -a
    CONTAINER ID  IMAGE                          COMMAND               CREATED        STATUS            PORTS                 NAMES
    81f64310c60c  localhost/alpine_nginx:latest  nginx -g daemon o...  6 minutes ago  Up 6 minutes ago  0.0.0.0:9999->80/tcp  cool_tu
  8. Use curl to connect to container
    curl http://localhost:9999
  9. Connect and get a shell on container
    podman exec -it cool_tu /bin/sh
  10. Connect to VM using ssh (not to above container)
    podman machine ssh
  11. Stop and rm podman machine
    podman machine stop
    podman machine rm

Suggested posts:

  1. Centos – save and restore iptables
  2. How to use wildcard in robots.txt
  3. How to use phantomjs to create site/url snapshot thumbnail
  4. LXC (Linux Containers) – quick start tutorial on Ubuntu
  5. minikube kubernetes – how to access service IP endpoint using curl
  6. HTML import
  7. Chrome extension tutorial – access active page dom
  8. NestJS Quick start tutorial on Mac
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Mac podman
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress