podman CentOS 8 не запускает контейнер как пользователь, не являющийся root - PullRequest
1 голос
/ 31 января 2020

Я пытаюсь запустить контейнер busybox как не root на сервере CentOS 8, но он выдает следующее сообщение.

Как правильно запустить контейнер как пользователь, не являющийся root?

  podman run -it --name busy  docker.io/library/busybox sh
Trying to pull docker.io/library/busybox...Getting image source signatures
Copying blob bdbbaa22dec6 done
Copying config 6d5fcfe5ff done
Writing manifest to image destination
Storing signatures
ERRO[0003] Error pulling image ref //busybox:latest: Error committing the finished image: error adding layer with blob "sha256:bdbbaa22dec6b7fe23106d2c1b1f43d9598cd8fc33706cc27c1d938ecd5bffc7": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 65534:65534 for /home): lchown /home: invalid argument
Failed
Error: unable to pull docker.io/library/busybox: unable to pull image: Error committing the finished image: error adding layer with blob "sha256:bdbbaa22dec6b7fe23106d2c1b1f43d9598cd8fc33706cc27c1d938ecd5bffc7": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 65534:65534 for /home): lchown /home: invalid argument

1 Ответ

0 голосов
/ 24 февраля 2020

Да, введенная вами команда верна. В моей системе Fedora 31 он работает просто отлично.

[testuser@fedora31 ~]$ podman run -it --name busy docker.io/library/busybox sh
Trying to pull docker.io/library/busybox...
Getting image source signatures
Copying blob bdbbaa22dec6 done  
Copying config 6d5fcfe5ff done  
Writing manifest to image destination
Storing signatures
/ # exit
[testuser@fedora31 ~]$ podman --version
podman version 1.8.0
[testuser@fedora31 ~]$ 

Флаг --rm также часто полезен.

Кажется, что полученная вами ошибка связана с отображением UID.

Вот некоторая информация относительно запуска podman без root:

https://github.com/containers/libpod/blob/master/docs/tutorials/rootless_tutorial.md

Что также может быть интересно:

" Не работает с домашними каталогами NFS или параллельной файловой системы"

Цитата из

https://github.com/containers/libpod/blob/master/rootless.md

...