Skip to content

How to handle --editable for rootless Podman #1483

@rgaiacs

Description

@rgaiacs

When working in support for Podman, I noticed that tests

  • tests/unit/test_editable.py::test_editable
  • tests/unit/test_editable.py::test_editable_by_host

would fail.

The tests fails due

/usr/local/bin/change.sh: line 3: newfile: Permission denied

This is because Podman runs, by default, as rootless. When Podman and Docker run as rootless, we have

flowchart TB
    subgraph container[rootless container]
    container-root[root UID=0]
    jovyan[jovyan UID=1000]
    end

    subgraph host
    host-root[root UID=0]
    alice[alice UID=1000]
    bob[bob UID=1001]
    repo2docker[repo2docker UID=101000]
    end

    alice-->container-root
    repo2docker-->jovyan
Loading

A file that is owned by alice will not be accessible to jovyan.

The recommendation in this cases is to run Jupyter in the container as root but this should be done by the user.

How do others think that repo2docker should behave?

Metadata

Metadata

Assignees

Labels

bugbuild backend - podmanFor all things related to Podman, https://podman.io/.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions