Developing KDE PIM with Docker
David Jarvie
djarvie at kde.org
Fri Nov 3 00:39:14 GMT 2017
On Thursday 02 Nov 2017 22:45:11 Ingo Klöcker wrote:
> On Donnerstag, 2. November 2017 21:11:37 CET David Jarvie wrote:
> > Running the 'ls' commands gives the same permissions and ownerships for
> > me.
> > However, when I try to create any file in ~/kdepim in the docker instance,
> > I always get an error message "Read-only file system".
> >
> > The docker command which run.sh executes is
> >
> > sudo docker run -ti -e DISPLAY -e ICECC_SERVER
> > -v=/tmp/.X11-unix:/tmp/.X11-
> > unix:rw,z -v=/run/user/1000/pulse:/run/user/1000/pulse:rw,z -
> > v=/home/david/kdepim-dev:/home/neon/kdepim:rw,z --privileged --name
> > kdepim-dev kdepim:dev
> >
> > So ~/kdepim-dev *should* be mounted read-write, but for some reason must
> > be
> > getting mounted read-only. There is no error message when I start docker.
>
> Does your user account 'david' really have user ID 1000?
>
> If your user ID is not 1000, then it's clear why the neon user (which has
> user ID 1000) inside the container cannot write to /home/david/kdepim-dev
> resp. /home/neon/kdepim.
>
> Try
> $ ls -lsan ~/kdepim-dev
> and
> $ docker exec -it kdepim-dev ls -lsan ~/kdepim
There doesn't seem to be a problem with user ID. Here are the two commands you
suggest, executed from the host:
> ls -lsan ~/kdepim-dev
total 8
4 drwxr-xr-x 2 1000 1000 4096 Nov 2 19:56 .
4 drwxr-xr-x 60 1000 1000 4096 Nov 2 19:56 ..
> docker exec -it kdepim-dev ls -lsan /home/neon/kdepim
total 8
4 drwxr-xr-x 2 1000 1000 4096 Nov 2 19:56 .
4 drwxr-xr-x 6 1000 1001 4096 Nov 3 00:34 ..
--
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
More information about the kde-pim
mailing list