Podman: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
==Add Registries== | ==Add Registries== | ||
<source lang="bash"> | <source lang="bash"> | ||
podman login hub.chorke.org -u academia -p sadaqah! | |||
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 = ['hub.chorke.org', 'hub.docker.com', 'docker.io', 'quay.io', 'ghcr.io'] | registries = ['hub.chorke.org', 'hub.docker.com', 'docker.io', 'quay.io', 'ghcr.io'] |
Revision as of 07:59, 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
podman login hub.chorke.org -u academia -p sadaqah!
sudo tee -a /etc/containers/registries.conf >>/dev/null <<'EOF'
[registries.search]
registries = ['hub.chorke.org', '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 |