LINUX.ORG.RU

Собираем реестры контейнеров podman: составить /etc/containers/registries.conf

 distrobox, , registries.conf


0

1

Debian 12 изначально (и после установки distrobox) содержит /etc/containers/registries.conf без записей.

Пока что добавил:

unqualified-search-registries = ['docker.io']

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

[[registry.mirror]]
location = "mirror.gcr.io"

[[registry.mirror]]
location = "registry.ipv6.docker.com"

Какие реестры контейнеров стоит ещё добавить? Скажем, Gentoo-контейнера в добавленных мной реестрах не нашлось.

★★★★★

я советую поставить докер. podman - это велосипед, где баги годами не правятся, разрабатываемый красной шапкой для своей проприетарщины.

rtxtxtrx
()
Ответ на: комментарий от eugrus
❯ distrobox create -n Gentoo -i docker.io/gentoo/stage3:latest
Image docker.io/gentoo/stage3:latest not found.
Do you want to pull the image now? [Y/n]: Y
latest: Pulling from gentoo/stage3
33a95e53ec85: Pull complete 
Digest: sha256:70203a99f99409c4a51ec3b25802339840e480c2ff67306c0edefedf61dce239
Status: Downloaded newer image for gentoo/stage3:latest
docker.io/gentoo/stage3:latest
Creating 'Gentoo' using image docker.io/gentoo/stage3:latest     [ OK ]
Distrobox 'Gentoo' successfully created.
To enter, run:

distrobox enter Gentoo

Successfully copied 2.05kB to /tmp/Gentoo.os-release
❯ distrobox enter Gentoo
Starting container...                            [ OK ]
Installing basic packages...

Твоя гента даже через докер не ставится.

Ругается на:

^C/usr/bin/distrobox-enter: line 567: /path/to/.cache/.Gentoo.fifo: No such file or directory
❯ distrobox create -n gentoo-distrobox -i gentoo/portage
Image gentoo/portage not found.
Do you want to pull the image now? [Y/n]: 
Using default tag: latest
latest: Pulling from gentoo/portage
4e6669f810e6: Pull complete 
524f469750c2: Pull complete 
Digest: sha256:7398c201ff67b5bfac35272b57a227c18cfc9761cee4ad12aca44f783e504470
Status: Downloaded newer image for gentoo/portage:latest
docker.io/gentoo/portage:latest
Creating 'gentoo-distrobox' using image gentoo/portage   [ OK ]
Distrobox 'gentoo-distrobox' successfully created.
To enter, run:

distrobox enter gentoo-distrobox

Error response from daemon: Could not find the file /etc/os-release in container gentoo-distrobox
❯ distrobox enter gentoo-distrobox
 Error: could not start entrypoint.
+ stat /run/host/etc/shadow
+ stat -c '%u' /run/host/etc/shadow
+ '[' 0 '=' 0 ]
+ '[' '!' -e /run/.nopasswd ]
+ rootful=1
+ '[' -n  ]
+ printf 'distrobox: Installing basic packages...\n'
+ basename zsh
+ shell_pkg=zsh
+ '[' zsh '=' ash ]
+ missing_packages=0
+ dependencies='
        bc
        bzip2
        chpasswd
        curl
        diff
        find
        findmnt
        gpg
        hostname
        less
        lsof
        man
        mount
        passwd
        pigz
        pinentry
        ping
        ps
        rsync
        script
        ssh
        sudo
        time
        tree
        umount
        unzip
        useradd
        wc
        wget
        xauth
        zip
        zsh
'
+ command -v bc
+ command -v bzip2
+ command -v chpasswd
+ command -v curl
+ missing_packages=1
+ break
+ '[' 0 -ne 0 ]
+ '[' 1 -ne 0 ]
+ command -v apk
+ command -v apt-get
+ command -v dnf
+ command -v emerge
+ command -v microdnf
+ command -v pacman
+ command -v slackpkg
+ command -v swupd
+ command -v xbps-install
+ command -v yum
+ command -v zypper
+ printf 'Error: could not find a supported package manager.\n'
+ printf 'Error: could not set up base dependencies.\n'
+ exit 127
+ '[' 127 -ne 0 ]
+ printf 'Error: An error occurred\n'
distrobox: Installing basic packages...
Error: could not find a supported package manager.
Error: could not set up base dependencies.
Error: An error occurred

Вывод: дистробокс - кривое гамно

rtxtxtrx
()
Последнее исправление: rtxtxtrx (всего исправлений: 2)