Tutorial: How to Install Podman on macOS
Podman is a container engine which allows you to run OCI containers without the need of a container daemon. This tutorial will guide you through the installation process of Podman on macOS.
Pre-Requisites
Before we get started, make sure you meet the following prerequisites:
macOS version 10.14 or later
Homebrew package manager installed. If you don't have it, run the following command in terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Installation
To install Podman on macOS, follow the steps below:
Add the Podman tap to Homebrew by running the following command in terminal:
brew tap containers/podmanInstall Podman by running the following command in terminal:
brew install podmanOnce the installation is complete, verify that Podman is installed by running the following command in terminal:
podman versionThis should output the current version of Podman installed.
If you encounter any errors during the installation or running of Podman, you may need to update your Xcode command line tools. To check if you have them installed, run the following command in terminal:
xcode-select -pIf this returns a directory path, then the Xcode command line tools are installed. If it returns an error or an empty response, run the following command to install them:
xcode-select --install
Conclusion
Congratulations! You have successfully installed Podman on your macOS. You can now start running OCI containers without the need of a container daemon.