使用podman替代docker

安装

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo apt-get install podman-docker
sudo apt-get install podman-docker
sudo apt-get install podman-docker

配置仓库

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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
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
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

 

Leave a Reply

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