From 40e06a91848afc9ee0ace23ad7d52c42af972950 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Thu, 26 May 2022 23:54:33 +0200 Subject: [PATCH] Auto saved by Logseq --- logseq/bak/podman.md.2022-05-26T21_52_45.025Z | 51 +++++++++++++++++++ logseq/bak/podman.md.2022-05-26T21_52_53.736Z | 50 ++++++++++++++++++ logseq/bak/podman.md.2022-05-26T21_52_56.545Z | 50 ++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 logseq/bak/podman.md.2022-05-26T21_52_45.025Z create mode 100644 logseq/bak/podman.md.2022-05-26T21_52_53.736Z create mode 100644 logseq/bak/podman.md.2022-05-26T21_52_56.545Z diff --git a/logseq/bak/podman.md.2022-05-26T21_52_45.025Z b/logseq/bak/podman.md.2022-05-26T21_52_45.025Z new file mode 100644 index 000000000..8e788eba1 --- /dev/null +++ b/logseq/bak/podman.md.2022-05-26T21_52_45.025Z @@ -0,0 +1,51 @@ +# podman +- a [[tool]]. + - [[docker]] alternative. + - advantages: supposedly more secure (doesn't require root), less complex architecture. + - part of the [[fedora]] project. + - https://social.coop/web/statuses/105866648612458840 + - [[install]] https://podman.io/getting-started/installation + - #go https://podman.io/ + - #git https://github.com/containers/podman + - [[rootless shortcomings]] https://github.com/containers/podman + - there are enough that I'll probably go with a root-based setup to begin with, while learning the system. + - else when things fail I'll probably find it hard to figure out if it's due to rootless or something else. +- [[notes on adoption]] + - On Debian 11, I had to install package [[uidmap]] to avoid https://github.com/containers/podman/issues/9271 + - Also I had to edit /etc/containers/registries.conf and set: + - `unqualified-search-registries = ["docker.io"]` + - ...to have podman search work as per in the upstream instructions (Debian ships with ultra-safe defaults or something.) + +``` +podman run --rm -it fedora +podman run --rm -it debian +``` + +Drop you into a one-off bare VM, it gets automatically cleaned up when you exit. + +``` +podman build -t agora . +``` + +Builds an 'agora' container if there is a [[Dockerfile]] in the path. If you want to force a 'clean' build, pass `--no-cache`; I needed this in the [[Agora Dockerfile]] because I was using `git clone` and this was failing to pull in the latest revisions. + +Then: + +``` +podman run -it agora +``` + +To run one interactively, or: + +``` +podman create -it --name agora agora +podman start agora +``` + +To start one detached. Then you can: + +``` +podman attach agora +``` + +...to attach. CTRL-P CTRL-Q to detach gracefully. diff --git a/logseq/bak/podman.md.2022-05-26T21_52_53.736Z b/logseq/bak/podman.md.2022-05-26T21_52_53.736Z new file mode 100644 index 000000000..e330a8ff2 --- /dev/null +++ b/logseq/bak/podman.md.2022-05-26T21_52_53.736Z @@ -0,0 +1,50 @@ +# podman +- a [[tool]]. + - [[docker]] alternative. + - advantages: supposedly more secure (doesn't require root), less complex architecture. + - part of the [[fedora]] project. + - https://social.coop/web/statuses/105866648612458840 + - [[install]] https://podman.io/getting-started/installation + - #go https://podman.io/ + - #git https://github.com/containers/podman + - [[rootless shortcomings]] https://github.com/containers/podman + - there are enough that I'll probably go with a root-based setup to begin with, while learning the system. + - else when things fail I'll probably find it hard to figure out if it's due to rootless or something else. +- [[notes on adoption]] + - On Debian 11, I had to install package [[uidmap]] to avoid https://github.com/containers/podman/issues/9271 + - Also I had to edit /etc/containers/registries.conf and set: + - `unqualified-search-registries = ["docker.io"]` + - ...to have podman search work as per in the upstream instructions (Debian ships with ultra-safe defaults or something.) + +``` +podman run --rm -it fedora +podman run --rm -it debian +``` + +Drop you into a one-off bare VM, it gets automatically cleaned up when you exit. + +``` +podman build -t agora . +``` + +Builds an 'agora' container if there is a [[Dockerfile]] in the path. If you want to force a 'clean' build, pass `--no-cache`; I needed this in the [[Agora Dockerfile]] because I was using `git clone` and this was failing to pull in the latest revisions. + +Then: + +``` +podman run -it agora +``` + +To run one interactively, or: + +``` +podman run -dt --name agora agora +``` + +To start one detached. Then you can: + +``` +podman attach agora +``` + +...to attach. CTRL-P CTRL-Q to detach gracefully. diff --git a/logseq/bak/podman.md.2022-05-26T21_52_56.545Z b/logseq/bak/podman.md.2022-05-26T21_52_56.545Z new file mode 100644 index 000000000..def2a8064 --- /dev/null +++ b/logseq/bak/podman.md.2022-05-26T21_52_56.545Z @@ -0,0 +1,50 @@ +# podman +- a [[tool]]. + - [[docker]] alternative. + - advantages: supposedly more secure (doesn't require root), less complex architecture. + - part of the [[fedora]] project. + - https://social.coop/web/statuses/105866648612458840 + - [[install]] https://podman.io/getting-started/installation + - #go https://podman.io/ + - #git https://github.com/containers/podman + - [[rootless shortcomings]] https://github.com/containers/podman + - there are enough that I'll probably go with a root-based setup to begin with, while learning the system. + - else when things fail I'll probably find it hard to figure out if it's due to rootless or something else. +- [[notes on adoption]] + - On Debian 11, I had to install package [[uidmap]] to avoid https://github.com/containers/podman/issues/9271 + - Also I had to edit /etc/containers/registries.conf and set: + - `unqualified-search-registries = ["docker.io"]` + - ...to have podman search work as per in the upstream instructions (Debian ships with ultra-safe defaults or something.) + +``` +podman run --rm -it fedora +podman run --rm -it debian +``` + +Drop you into a one-off bare VM, it gets automatically cleaned up when you exit. + +``` +podman build -t agora . +``` + +Builds an 'agora' container if there is a [[Dockerfile]] in the path. If you want to force a 'clean' build, pass `--no-cache`; I needed this in the [[Agora Dockerfile]] because I was using `git clone` and this was failing to pull in the latest revisions. + +Then: + +``` +podman run -it agora +``` + +To run one interactively, or: + +``` +podman run -dt --name agora agora +``` + +To start one detached. Then you can: + +``` +podman attach agora +``` + +...to attach. When you're done, press CTRL-P CTRL-Q to detach gracefully.