使用podman替代docker

安装

sudo apt-get install podman-docker

配置仓库

sudo tee /etc/containers/registries.conf <<-'EOF'
unqualified-search-registries = ["docker.io"]

[[registry]]
prefix = "docker.io"
location = "docker.io"

[[registry.mirror]]
location = "docker.mirrors.tuna.tsinghua.edu.cn"

[[registry.mirror]]
location= "ghcr.io"
EOF

对应docker-compose也有单独命令

sudo apt-get install podman-compose
podman-compose up

 

Leave a Reply

Your email address will not be published. Required fields are marked *