Reputation: 81
I am trying to build a trivial image from the follwing Dockerfile:
FROM arm32v7/ubuntu:20.04
RUN touch tmp.txt
But I receive the error Operation not permitted
$ docker build .
Sending build context to Docker daemon 71.68kB
Step 1/2 : FROM arm32v7/ubuntu:20.04
---> bcf7edb34eae
Step 2/2 : RUN touch tmp.txt
---> Running in 686d92e86a27
touch: setting times of 'tmp.txt': Operation not permitted
This happens on an Raspberry Pi flashed with Hypriot OS, while the same builds just fine on my laptop (x86 and cross building).
I get it is some kind of permission error, but I am able to run sudo
commands without problems, hence I don't really know what to do.
Upvotes: 4
Views: 5100
Reputation: 81
Found a solution here, based on this GitHub issue
The solution is to update libseccomp2
executing the following on the Raspberry Pi:
wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.4.4-1~bpo10+1_armhf.deb
sudo dpkg -i libseccomp2_2.4.4-1~bpo10+1_armhf.deb
Afterwards, the image builds as expected
Upvotes: 4