[GRASS-user] Create location fails in docker

Margherita Di Leo diregola at gmail.com
Thu Sep 30 05:34:37 PDT 2021


Hi Moritz,

On Thu, Sep 30, 2021 at 10:49 AM Moritz Lennert <
mlennert at club.worldonline.be> wrote:

> Hi Madi,
>
> Am 30.09.2021 09:46 schrieb Margherita Di Leo:
> >
> >> PermissionError: [Errno 13] Permission denied: '/.grass7'
> >
> > What does this error message mean? Why is it trying to write in the
> > /.grass7 folder ?
>
> Whenever you launch GRASS GIS with the grass startup script, it writes
> the chosen Gisdbase/Location/Mapset info into .grass7/rc. If you launch
> GRASS GIS for the first time, it first creates the directory .grass7
> which is the part that fails with a permission error.
>
> But isn't .grass7/rc folder supposed to be written in the home directory?
In my docker image I set the user and a home directory is created for it...


> I'm no Docker expert at all, but I think you have to explicitly run the
> container with parameters indicating the devices one can access from
> within.
>

I'm trying to figure... I set a workdir and give full permissions to the
user to it, but still the .grass7 folder is not written there nor in the
home. Is there a way to "force" the grass configuration files to be written
somewhere else?

Thanks,


-- 
Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20210930/c6e0ec68/attachment-0001.html>


More information about the grass-user mailing list