podman basic
Contents
install
https://podman.io/getting-started/installation
ubuntu
. /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 -
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install podman
archlinux
|
|
logs
podman logs --since 1m -f conter_id_0
podman logs --latest
registry config, mirror
/etc/containers/registries.conf
|
|
另外一种配置文件
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "xxxxxx.mirror.aliyuncs.com"
run
|
|
systemd script
|
|
network
|
|
centos 8 install podman
Install EPEL Repository on RHEL / CentOS 8
|
|
Ensure PowerTools repo is enabled as well – CentOS 8 only
|
|
Install Podman
|
|
volume
|
|
pod
podman pod create -n pod_name_0 -p 8086:8086 -p 3000:3000 -p 8888:8888
# 使用pod, 端口映射要配置到pod上,pod内的容器不配端口
创建容器并加入pod
podman run -d --pod pod_name_0 influxdb
https://www.hangge.com/blog/cache/detail_2475.html
https://www.mankier.com/1/podman-unshare
https://opensource.com/article/19/2/how-does-rootless-podman-work
https://www.mankier.com/1/podman-generate-systemd https://computingforgeeks.com/how-to-install-epel-repository-on-rhel-8-centos-8/" https://computingforgeeks.com/how-to-install-epel-repository-on-rhel-8-centos-8/embed/#?secret=Vw63QL1LVb" https://computingforgeeks.com/how-to-install-and-use-podman-on-centos-rhel/" https://computingforgeeks.com/how-to-install-and-use-podman-on-centos-rhel/embed/#?secret=kP3lpS51yS"
podman pod
podman pod --help
podman pod create --help
podman pod ps
rootless
|
|
macvlan
https://ctimbai.github.io/2019/04/14/tech/docker-macvlan/
|
|
在 host1 运行容器 c1,并指定使用 macvlan 网络:
|
|
https://stackoverflow.com/questions/59515026/how-do-i-replicate-a-docker-macvlan-network-with-podman
podman
http://docs.podman.io/en/latest/
VFS , fuse-overlayfs
Our first recommendation in these cases is usually to avoid using VFS, and instead use fuse-overlayfs.
image, images
podman images -a
podman image prune
podman image rm image-id-0
https://github.com/containernetworking/plugins
other
podman unshare cat /proc/self/uid_map
unshare -U
Author w1100n
LastMod 2020-01-19