<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pbabinca</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pbabinca"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Pbabinca"/>
	<updated>2026-04-29T13:33:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Podman&amp;diff=26972</id>
		<title>Podman</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Podman&amp;diff=26972"/>
		<updated>2024-08-08T09:36:19Z</updated>

		<summary type="html">&lt;p&gt;Pbabinca: don&amp;#039;t use doas and use # to show that shell prompt is running as root&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installation ==&lt;br /&gt;
&lt;br /&gt;
Podman can be installed via {{Pkg|podman}} package in the community repository.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add podman}}&lt;br /&gt;
&lt;br /&gt;
=== Running as root ===&lt;br /&gt;
&lt;br /&gt;
To run podman you&#039;ll need to enable the &amp;lt;code&amp;gt;cgroups&amp;lt;/code&amp;gt; service, consider enabling [[OpenRC#cgroups v2|cgroups v2]].&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# rc-update add cgroups}}&lt;br /&gt;
{{Cmd|# rc-service cgroups start}}&lt;br /&gt;
&lt;br /&gt;
You might need to restart your machine for this to work properly.&lt;br /&gt;
&lt;br /&gt;
If you are running on top of [[Btrfs]], consider setting storage driver to &amp;lt;code&amp;gt;btrfs&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ cat /etc/containers/storage.conf | grep &#039;driver =&#039;}}&lt;br /&gt;
&lt;br /&gt;
 driver = &amp;quot;btrfs&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Running in rootless mode ===&lt;br /&gt;
&lt;br /&gt;
For rootless support (replace &amp;lt;USER&amp;gt; with your username):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# modprobe tun&lt;br /&gt;
&amp;amp;#35; echo tun &amp;gt;&amp;gt;/etc/modules&lt;br /&gt;
&amp;amp;#35; echo &amp;lt;USER&amp;gt;:100000:65536 &amp;gt;/etc/subuid&lt;br /&gt;
&amp;amp;#35; echo &amp;lt;USER&amp;gt;:100000:65536 &amp;gt;/etc/subgid}}&lt;br /&gt;
&lt;br /&gt;
Run an example container to verify everything works:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ podman run --rm hello-world}}&lt;br /&gt;
&lt;br /&gt;
==== Shared mount ====&lt;br /&gt;
&lt;br /&gt;
Containers on linux might require filesystems to be mounted with different propagation than the kernel default of &#039;private&#039;. If you see a warning:&lt;br /&gt;
&lt;br /&gt;
: WARN[0000] &amp;quot;/&amp;quot; is not a shared mount, this could cause issues or missing mounts with rootless containers &lt;br /&gt;
&lt;br /&gt;
you might want to fix this temporarily, for currently running system:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# mount --make-rshared /}}&lt;br /&gt;
&lt;br /&gt;
and try the command that caused the warning again. &lt;br /&gt;
&lt;br /&gt;
Alternatively, you could use following command:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# findmnt -o PROPAGATION /}}&lt;br /&gt;
&lt;br /&gt;
which should print:&lt;br /&gt;
&lt;br /&gt;
    PROPAGATION&lt;br /&gt;
    shared&lt;br /&gt;
&lt;br /&gt;
For a permanent fix (after a [https://github.com/OpenRC/openrc/pull/526 OpenRC PR#526] is released - in newer version than 0.54.2-r1), edit {{path|/etc/fstab}}:&lt;br /&gt;
&lt;br /&gt;
   {{cmd|# $EDITOR /etc/fstab}}&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;shared&amp;lt;/code&amp;gt; option to the root partition:&lt;br /&gt;
&lt;br /&gt;
   /dev/sda2 / ext4 rw,relatime,shared 0 1&lt;br /&gt;
&lt;br /&gt;
and after a reboot test it out similarly as above.&lt;br /&gt;
&lt;br /&gt;
=== Docker compose ===&lt;br /&gt;
&lt;br /&gt;
Podman provides a drop-in replacement for docker compose. The {{Pkg|podman-compose}} package provides this.&lt;br /&gt;
&lt;br /&gt;
Each time that docker compose is used, a warning will remind that this is using podman under the hood. This warning can be squelched permanently by running:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# touch /etc/containers/nodocker}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Virtualization]]&lt;/div&gt;</summary>
		<author><name>Pbabinca</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Podman&amp;diff=26971</id>
		<title>Podman</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Podman&amp;diff=26971"/>
		<updated>2024-08-08T09:31:09Z</updated>

		<summary type="html">&lt;p&gt;Pbabinca: Shared mount&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installation ==&lt;br /&gt;
&lt;br /&gt;
Podman can be installed via {{Pkg|podman}} package in the community repository.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add podman}}&lt;br /&gt;
&lt;br /&gt;
=== Running as root ===&lt;br /&gt;
&lt;br /&gt;
To run podman you&#039;ll need to enable the &amp;lt;code&amp;gt;cgroups&amp;lt;/code&amp;gt; service, consider enabling [[OpenRC#cgroups v2|cgroups v2]].&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# rc-update add cgroups}}&lt;br /&gt;
{{Cmd|# rc-service cgroups start}}&lt;br /&gt;
&lt;br /&gt;
You might need to restart your machine for this to work properly.&lt;br /&gt;
&lt;br /&gt;
If you are running on top of [[Btrfs]], consider setting storage driver to &amp;lt;code&amp;gt;btrfs&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ cat /etc/containers/storage.conf | grep &#039;driver =&#039;}}&lt;br /&gt;
&lt;br /&gt;
 driver = &amp;quot;btrfs&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Running in rootless mode ===&lt;br /&gt;
&lt;br /&gt;
For rootless support (replace &amp;lt;USER&amp;gt; with your username):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# modprobe tun&lt;br /&gt;
&amp;amp;#35; echo tun &amp;gt;&amp;gt;/etc/modules&lt;br /&gt;
&amp;amp;#35; echo &amp;lt;USER&amp;gt;:100000:65536 &amp;gt;/etc/subuid&lt;br /&gt;
&amp;amp;#35; echo &amp;lt;USER&amp;gt;:100000:65536 &amp;gt;/etc/subgid}}&lt;br /&gt;
&lt;br /&gt;
Run an example container to verify everything works:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|$ podman run --rm hello-world}}&lt;br /&gt;
&lt;br /&gt;
==== Shared mount ====&lt;br /&gt;
&lt;br /&gt;
Containers on linux might require filesystems to be mounted with different propagation than the kernel default of &#039;private&#039;. If you see a warning:&lt;br /&gt;
&lt;br /&gt;
: WARN[0000] &amp;quot;/&amp;quot; is not a shared mount, this could cause issues or missing mounts with rootless containers &lt;br /&gt;
&lt;br /&gt;
you might want to fix this temporarily, for currently running system:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|doas mount --make-rshared /}}&lt;br /&gt;
&lt;br /&gt;
and try the command that caused the warning again. &lt;br /&gt;
&lt;br /&gt;
Alternatively, you could use following command:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|doas findmnt -o PROPAGATION /}}&lt;br /&gt;
&lt;br /&gt;
which should print:&lt;br /&gt;
&lt;br /&gt;
    PROPAGATION&lt;br /&gt;
    shared&lt;br /&gt;
&lt;br /&gt;
For a permanent fix (after a [https://github.com/OpenRC/openrc/pull/526 OpenRC PR#526] is released - in newer version than 0.54.2-r1), edit {{path|/etc/fstab}}:&lt;br /&gt;
&lt;br /&gt;
   {{cmd|doas $EDITOR /etc/fstab}}&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;shared&amp;lt;/code&amp;gt; option to the root partition:&lt;br /&gt;
&lt;br /&gt;
   /dev/sda2 / ext4 rw,relatime,shared 0 1&lt;br /&gt;
&lt;br /&gt;
and after a reboot test it out similarly as above.&lt;br /&gt;
&lt;br /&gt;
=== Docker compose ===&lt;br /&gt;
&lt;br /&gt;
Podman provides a drop-in replacement for docker compose. The {{Pkg|podman-compose}} package provides this.&lt;br /&gt;
&lt;br /&gt;
Each time that docker compose is used, a warning will remind that this is using podman under the hood. This warning can be squelched permanently by running:&lt;br /&gt;
&lt;br /&gt;
 touch /etc/containers/nodocker&lt;br /&gt;
&lt;br /&gt;
[[Category:Virtualization]]&lt;/div&gt;</summary>
		<author><name>Pbabinca</name></author>
	</entry>
</feed>