febbo@febbo-HP-Z220-SFF-Workstation:~/Documents/workspace/MAVs$ sh build.sh
middle: Pulling from avpg/cain
Digest: sha256:b0f93807d1c5e45dd9cee4a3708d3e1339b1f58043767652d7952746f9adaa61
Status: Image is up to date for avpg/cain:middle
Sending build context to Docker daemon 278.5MB
Step 1/4 : FROM avpg/cain:middle
---> 39b9aecb3da8
Step 2/4 : COPY ros /home/$USERNAME/MAVs/ros
---> Using cache
---> a87781bf8d83
Step 3/4 : RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/MAVs/ros/; catkin_make'
---> Running in 7b48ae2ada06
[Errno 13] Permission denied: '/home/mavs/MAVs/ros/devel/.built_by'
Base path: /home/mavs/MAVs/ros
Source space: /home/mavs/MAVs/ros/src
Build space: /home/mavs/MAVs/ros/build
Devel space: /home/mavs/MAVs/ros/devel
The command '/bin/sh -c /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/MAVs/ros/; catkin_make'' returned a non-zero code: 1
Following the solution here https://github.com/JuliaMPC/MAVs/issues/86 does not fix this