Podman Concepts: Difference between revisions
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Podman#Subjects|podman]] | * [[Podman#Subjects|Podman]] | ||
= | * [[Podman Operations|Podman Operations]] | ||
=Podman Virtual Machine= | |||
Podman on MacOS or Windows requires a virtual machine. This is because containers must run with a Linux kernel, and the podman virtual machine provides that Linux kernel on Mac. If it does not exist, the virtual machine must be [[Podman_Operations#VM_Initialization|initialized]], then [[Podman_Operations#VM_Startup|started]]. | |||
The started virtual machine mounts as volume the home directory of the user that starts it. There's also an API server listening on <code>$HOME/.local/share/containers/podman/machine/podman-machine-default/podman.sock</code>. | |||
A started virtual machine survives reboot. | |||
==Virtual Machine Operations== | |||
* [[Podman_Operations#Podman_Virtual_Machine_Initialization|Initialize a virtual machine]]. | |||
* [[Podman_Operations#Start_Virtual_Machine|Start a virtual machine]]. | |||
* [[Podman_Operations#Stop_Virtual_Machine|Stop a virtual machine]]. | |||
* [[Podman_Operations#Remove_a_Virtual_Machine|Remove a virtual machine]]. | |||
* [[Podman_Operations#Display_Virtual_Machine_Information|Display virtual machine information]]. | |||
* [[Podman_Operations#Inspect_a_Virtual_Machine|Inspect a virtual machine]]. | |||
* [[Podman_Operations#List_Virtual_Machines|List virtual machines]]. | |||
* [[Podman_Operations#Configure_a_Virtual_Machine|Configure a virtual machine]]. | |||
* [[Podman_Operations#ssh_Into_a_Virtual_Machine|ssh into a virtual machine]]. | |||
=Containerfile= | =Containerfile= |
Latest revision as of 05:38, 4 May 2023
Internal
Podman Virtual Machine
Podman on MacOS or Windows requires a virtual machine. This is because containers must run with a Linux kernel, and the podman virtual machine provides that Linux kernel on Mac. If it does not exist, the virtual machine must be initialized, then started.
The started virtual machine mounts as volume the home directory of the user that starts it. There's also an API server listening on $HOME/.local/share/containers/podman/machine/podman-machine-default/podman.sock
.
A started virtual machine survives reboot.
Virtual Machine Operations
- Initialize a virtual machine.
- Start a virtual machine.
- Stop a virtual machine.
- Remove a virtual machine.
- Display virtual machine information.
- Inspect a virtual machine.
- List virtual machines.
- Configure a virtual machine.
- ssh into a virtual machine.
Containerfile
Also see:
Build Context
Also see:
Rootless Mode
The mode in which the podman Virtual Machine runs where containers are not allowed root permissions.