Size: 212
Comment:
|
Size: 1464
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
* https://docs.podman.io/en/latest/index.html | |
Line 5: | Line 6: |
Podman relies on an OCI compliant Container Runtime (runc, crun, runv, etc) to interface with the operating system and create the running containers. There is a RESTFul API to manage containers. We also have a remote Podman client that can interact with the RESTFul service. == Debian install == {{{#!highlight sh sudo apt -y install podman podman info podman info mkdir -p ~/.config/containers/ touch $HOME/.config/containers/registries.conf echo "unqualified-search-registries = ['registry.fedoraproject.org', 'registry.access.redhat.com', 'registry.centos.org', 'docker.io']" > $HOME/.config/containers/registries.conf cat $HOME/.config/containers/registries.conf podman search alpine }}} == Run Alpine == === Containerfile === {{{#!highlight sh FROM alpine:3.16 RUN apk add --update --no-cache python3 curl wget nano vim py3-pip CMD ["cat"] }}} === Steps === {{{#!highlight sh podman build -t alpine-image . #select docker.io/library/alpine:3.16 podman run -p 8081:8081 -d -it --rm --name alpine-container --mount type=bind,source="$(pwd)",target=/app alpine-image podman ps podman exec -it env-docker-alpine-container sh cat /etc/os-release exit }}} |
podman
Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. Containers can either be run as root or in rootless mode.
Podman relies on an OCI compliant Container Runtime (runc, crun, runv, etc) to interface with the operating system and create the running containers.
There is a RESTFul API to manage containers. We also have a remote Podman client that can interact with the RESTFul service.
Debian install
1 sudo apt -y install podman
2 podman info
3
4 podman info
5 mkdir -p ~/.config/containers/
6 touch $HOME/.config/containers/registries.conf
7 echo "unqualified-search-registries = ['registry.fedoraproject.org', 'registry.access.redhat.com', 'registry.centos.org', 'docker.io']" > $HOME/.config/containers/registries.conf
8 cat $HOME/.config/containers/registries.conf
9 podman search alpine
Run Alpine
Containerfile