Podman Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 17: Line 17:
=VM Initialization=
=VM Initialization=
{{External|https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html#}}
{{External|https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html#}}
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. For more details, see [[Podman_Concepts#podman_Virtual_Machine|Podman Virtual Machine]].
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.  
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
podman machine init
podman machine init
</syntaxhighlight>
</syntaxhighlight>
initializes a new Linux VM where the containers are run.
initializes a new Linux VM where the containers are run.
For more details, see {{Internal|Podman_Concepts#podman_Virtual_Machine|Podman Virtual Machine}}


=VM Startup=
=VM Startup=

Revision as of 04:24, 4 May 2023

Internal

Installation

Mac

brew install podman

Linux

dnf install -y podman && dnf clean all
podman --version

Version

podman --version

VM Initialization

https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html#

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

Podman Virtual Machine

VM Startup

https://docs.podman.io/en/latest/markdown/podman-machine-start.1.html

Once the VM is initialized, it must be stared with:

podman machine start

Build Container Images

Build Container Images with podman