cat Dockerfile
FROM python:3.11-alpine
RUN apk update
RUN apk add py3-opencv
sudo docker build .
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 100B
=> [internal] load metadata for docker.io/library/python:3.11-alpine
=> [internal] load .dockerignore
=> => transferring context: 2B
=> [1/3] FROM docker.io/library/python:3.11-alpine@sha256:0b5ed25d3cc27cd35c7b0352bac8ef2ebc8dd3da72a0c03caaf4eb15d9ec827a
=> CACHED [2/3] RUN apk update
=> ERROR [3/3] RUN apk add py3-opencv
------
> [3/3] RUN apk add py3-opencv:
...
7.027 ERROR: Failed to set xattrs on usr/libexec/gstreamer-1.0/.apk.c9203f03560f39238d3a0f79f1a1677c48726e842f62a8a8: Operation not permitted
Вот она, эта странная ошибка. Под Убунтой всё проходит норм.
Далее версии софта на системе сборки:
lsb_release -a
No LSB modules are available.
Distributor ID: AstraLinux
Description: Astra Linux 1.7 x86-64
Release: 1.7_x86-64
Codename: 1.7_x86-64
uname -a
Linux main 5.15.0-83-generic #astra1+ci50 SMP Thu Jan 11 09:57:17 UTC 2024 x86_64 GNU/Linux
sudo docker version
Client: Docker Engine - Community
Version: 26.1.1
API version: 1.45
Go version: go1.21.9
Git commit: 4cf5afa
Built: Tue Apr 30 11:48:14 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.1.1
API version: 1.45 (minimum version 1.24)
Go version: go1.21.9
Git commit: ac2de55
Built: Tue Apr 30 11:48:14 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
С этим можно что-то сделать?