Podman: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 13: Line 13:
sudo tee -a /etc/containers/registries.conf >>/dev/null <<'EOF'
sudo tee -a /etc/containers/registries.conf >>/dev/null <<'EOF'
[registries.search]
[registries.search]
registries = ['ghcr.io', 'quay.io', 'docker.io']
registries = ['docker.io', 'quay.io', 'ghcr.io']
EOF
EOF
</source>
</source>

Revision as of 04:07, 1 August 2022

. /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 = ['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

References