Podman

From Chorke Wiki
Jump to navigation Jump to search
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d /devel:kubic:libcontainers:stable.list
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
apt update
apt upgrade
apt install podman

Add Registries

sudo tee -a /etc/containers/registries.conf >>/dev/null <<'EOF'
[registries.search]
registries = ['hub.docker.com', 'docker.io', 'quay.io', 'ghcr.io']
EOF

Manage Images

podman pull fedora:latest
podman run -it fedora bash
~/.local/share/containers

Docker Removal

systemctl stop docker
yum -y remove docker
podman pull fedora:latest

Knowledge

podman logs –latest
podman inspect –l
podman --version 
podman version
podman --help
podman ps
podman login  hub.chorke.org -u academia -p sadaqah!
podman login  reg.chorke.org -u academia -p sadaqah!


podman logout hub.chorke.org
podman logout reg.chorke.org

podman run --name='crawler' -d -p 1983:1983 chorke/crawler:1.0.00
podman run --rm --name='crawler' -d -p 1983:1983 chorke/crawler:1.0.00
podman run --rm --name='crawler' -d -p 1983:1983 hub.chorke.org/chorke/crawler:1.0.00

References