multiarch / crossbuild

:earth_africa: multiarch cross compiling environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fedora 26 issue

zuzzurro opened this issue · comments

I'm quite new at docker, so forgive the naivete.
After successfully installing crossbuild on a fedora26 alpha desktop pc, all commands fail.

$ docker run -it --rm -v $(/bin/pwd):/workdir -e CROSS_TRIPLE=arm-linux-gnueabihf multiarch/crossbuild ls      
ls: cannot open directory .: Permission denied

$ docker run -it --rm -v $(/bin/pwd):/workdir -e CROSS_TRIPLE=arm-linux-gnueabihf multiarch/crossbuild ls -l ..
total 24
drwxr-xr-x.   1 root root   267 Jan 30 17:51 bin
drwxr-xr-x.   2 root root     6 Dec 28 17:42 boot
drwxr-xr-x.   5 root root   360 Jun 14 14:25 dev
drwxr-xr-x.   1 root root    66 Jun 14 14:25 etc
drwxr-xr-x.   2 root root     6 Dec 28 17:42 home
drwxr-xr-x.   1 root root   278 Jan 30 17:52 lib
drwxr-xr-x.   1 root root    23 Jan 30 17:49 lib64
drwxr-xr-x.   2 root root     6 Jan 16 18:02 media
drwxr-xr-x.   2 root root     6 Jan 16 18:02 mnt
drwxr-xr-x.   2 root root     6 Jan 16 18:02 opt
dr-xr-xr-x. 419 root root     0 Jun 14 14:25 proc
drwx------.   2 root root    37 Jan 16 18:02 root
drwxr-xr-x.   1 root root    19 Jan 30 17:51 run
drwxr-xr-x.   2 root root  4096 Jan 16 18:05 sbin
drwxr-xr-x.   2 root root     6 Jan 16 18:02 srv
dr-xr-xr-x.  13 root root     0 Jun 14 09:26 sys
drwxrwxrwt.   1 root root     6 Jan 17 00:00 tmp
drwxr-xr-x.   1 root root    17 Jan 30 18:06 usr
drwxr-xr-x.   1 root root    41 Jan 17 00:00 var
drwxr-xr-x.  36 1000 1000 16384 Jun 14 13:37 workdir

$ docker run -it --rm -v $(/bin/pwd):/workdir -e CROSS_TRIPLE=arm-linux-gnueabihf multiarch/crossbuild id
uid=0(root) gid=0(root) groups=0(root)

It is it because workdir is owned by user 1000 and the commands are run as root?