我正在尝试从下面的Dockerfile构建一个微不足道的镜像:
FROM arm32v7/ubuntu:20.04
RUN touch tmp.txt但是我收到错误的操作不被允许
$ 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这发生在带有Hypriot操作系统的Raspberry Pi上,而同样的构建在我的笔记本电脑上也很好(x86和交叉构建)。
我知道这是某种权限错误,但我可以毫无问题地运行sudo命令,因此我真的不知道该怎么办。
发布于 2021-01-14 21:16:02
找到了一个基于this GitHub issue的解决方案here
解决方案是更新libseccomp2,在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之后,映像将按预期构建
https://stackoverflow.com/questions/65717411
复制相似问题