podman是docker的替代品,语法和docker基本一致。
podman-compose是docker-compose的替代品。
yum install podman
podman -v
podman version 4.1.1
pip3 --version
bash: pip3: command not found
https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
pip3 --version
pip 22.2.2 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
pip3 install podman-compose
podman-compose -v
['podman', '--version', '']
using podman version: 4.1.1
podman-composer version 1.0.3
podman --version
podman version 4.1.1
exit code: 0
vim /etc/containers/registries.conf
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "docker.io"
#阿里云,xxxxxxxx为你的id
[[registry.mirror]]
location = "xxxxxxxx.mirror.aliyuncs.com"
#网易
[[registry.mirror]]
location = "hub-mirror.c.163.com"
#USTC
[[registry.mirror]]
location = "docker.mirrors.ustc.edu.cn"
#docker官方中国区
[[registry.mirror]]
location = "registry.docker-cn.com"