Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set podman #280

Open
HernandoR opened this issue Sep 6, 2024 · 0 comments
Open

how to set podman #280

HernandoR opened this issue Sep 6, 2024 · 0 comments
Labels

Comments

@HernandoR
Copy link

HernandoR commented Sep 6, 2024

Comment:

i guess this is a silly question but i've been blocked by this.

I'm using podman as replace for docker, but it cannot write into the recipe_root, which is owned by "root:root" in the rootless container, while the running user is "conda(9001)"

+ make_build_number /home/conda/feedstock_root /home/conda/recipe_root /home/conda/feedstock_root/.ci_support/linux_64_c_compiler_version12cuda_compiler_version12.0cxx_compiler_version12python3.12.____cpython.yaml
+ [[ linux-64 != \l\i\n\u\x\-\6\4 ]]
+ [[ -f /home/conda/feedstock_root/LICENSE.txt ]]
+ cp /home/conda/feedstock_root/LICENSE.txt /home/conda/recipe_root/recipe-scripts-license.txt
cp: cannot create regular file ‘/home/conda/recipe_root/recipe-scripts-license.txt’: Permission denied
Traceback (most recent call last):
  File "/home/lz/Downloads/pycolmap-feedstock/./build-locally.py", line 106, in <module>
    main()
  File "/home/lz/Downloads/pycolmap-feedstock/./build-locally.py", line 94, in main
    run_docker_build(ns)
  File "/home/lz/Downloads/pycolmap-feedstock/./build-locally.py", line 29, in run_docker_build
    subprocess.check_call([script])
  File "/home/lz/miniforge3/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['.scripts/run_docker_build.sh']' returned non-zero exit status 1.

I've tried to set userns=keep-id in my container.conf, but it reports:

bash: unalias: cp: not found
useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.
chown: invalid user: ‘conda:conda’
cp: cannot create directory ‘/home/conda’: Permission denied
rm: cannot remove ‘/opt/conda/.condarc’: Permission denied
cp: cannot stat ‘/root/.condarc’: Permission denied
bash: cd: /home/conda: No such file or directory
su-exec: setgroups: Operation not permitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant