1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| #CentOS sudo dnf install podman podman-compose #Ubuntu(由于ubuntu系统过于追求更新, 在这个操作系统上 这俩个版本会不一致,需要手动去确认版本) sudo apt-get update && sudo apt-get install podman podman-compose #install socket systemctl --user enable --now podman.socket systemctl --user start podman.socket systemctl --user status podman.socket ls -l /run/user/$(id -u)/podman/ # config registries #root #sudo vim /etc/containers/registries.conf #rootless vim ~/.config/containers/registries.conf chmod 644 ~/.config/containers/registries.conf # 设置权限 #add registries unqualified-search-registries = ["docker.io"] [[registry]] prefix = "docker.io" location = "docker.1ms.run" [[registry]] prefix = "docker.io" location = "docker-0.unsee.tech"
# setting storage mkdir -p ~/.config/containers mkdir -p ~/.local/run/containers/storage vim ~/.config/containers/storage.conf # add storage dir [storage] driver = "overlay" #runroot = "/home/$USER/.local/run/containers/storage" graphroot = "/home/$USER/.local/share/containers/storage" #successcful podman info
|