Podman Operations: Difference between revisions
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
For more details, see {{Internal|Podman_Concepts#Podman_Virtual_Machine|Podman Virtual Machine}} | For more details, see {{Internal|Podman_Concepts#Podman_Virtual_Machine|Podman Virtual Machine}} | ||
=<span id='https://kb.novaordis.com/index.php/Podman_Operations#VM_Startup'></span> | ==<span id='https://kb.novaordis.com/index.php/Podman_Operations#VM_Startup'></span><span id='Podman_Virtual_Machine_Startup'></span>Start Virtual Machine== | ||
{{External|https://docs.podman.io/en/latest/markdown/podman-machine-start.1.html}} | {{External|https://docs.podman.io/en/latest/markdown/podman-machine-start.1.html}} | ||
Once the VM is [[#VM_Initialization|initialized]], it must be stared with: | Once the VM is [[#VM_Initialization|initialized]], it must be stared with: | ||
Line 34: | Line 34: | ||
podman machine start | podman machine start | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Install System Helper=== | |||
==Install System Helper== | |||
<font color=darkkhaki> | <font color=darkkhaki> | ||
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: | 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: |
Revision as of 05:16, 4 May 2023
Internal
Installation
Mac
brew install podman
Linux
dnf install -y podman && dnf clean all
podman --version
Version
podman --version
Podman Virtual Machine Operations
Podman Virtual Machine Initialization
Podman on MacOS requires a virtual machine. This is because containers must run with a Linux kernel, and the Podman virtual machine provides that kernel.
podman machine init
initializes a new Linux VM where the containers are run.
For more details, see
Start Virtual Machine
Once the VM is initialized, it must be stared with:
podman machine start
Install System Helper
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/brew/Cellar/podman/4.2.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:///Users/ovidiu/.local/share/containers/podman/machine/podman-machine-default/podman.sock'