1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openeuler-iSulad

 / Детали:

Использование userns-remap для запуска контейнеров в окружении Android привело к неудаче при доступе к файлам...

Предстоит сделать
Владелец
Создано  
03.03.2025

/etc/subuid и /etc/subgid, что вызвало сбой при старте контейнера.

Problem Title: Brief description of the problem: Describe the scenario where a specific operation is performed that leads to the occurrence of the problem (try to use positive expression form)

Environment Details:
Android

Steps to Reproduce Problem:
visual run -tid --user-remap xxxx:xxxx:65535 --system-container --external-rootfs xxxx none xxxx
Reproducibility: always

Expected Result:
Successful container launch

Actual Result:
Container does not start
Error opening file /etc/subuid in utils.c:lcr_util_atomic_write_file:1242

Mitigation:
In an Android environment, files /etc/subuid and /etc/subgid are missing. Handling subid in the function trans_one_oci_id_mapping in conf.c can be enclosed in the macro ANDROID, which resolves this issue.

Комментарий (0)

GitLife Service Account Задача создана
GitLife Service Account добавлено
 
sig/iSulad
label.
Развернуть журнал операций

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/oschina-mirror/openeuler-iSulad.git
git@api.gitlife.ru:oschina-mirror/openeuler-iSulad.git
oschina-mirror
openeuler-iSulad
openeuler-iSulad