Building with script on a mac (Apple Silicon M3 max):
#!/bin/bash
#platform=
platform="--platform=linux/amd64"
docker build -t fedock -f Dockerfile $platform .
where Dockerfile is
# Start from a Fedora image
FROM fedora:45
COPY dotfiles.tar .
RUN tar xf dotfiles.tar
and dotfiles.tar file contains a single file bin/grepvi, gives the error:
5 RUN tar xf dotfiles.tar
.......................
tar:bin/grepvi: Cannot open: Function not implemented
tar: Exiting with failure status due to previous errors
NOTE:
- Native platform builds (arm64, amd64) are fine.
- Fedora 43 is fine. Only 44 and 45 shows the error.
- The file in the tar being in a subdirectory is needed for the error to show up.
Attached compressed tar file:
dotfiles.tar.gz
Building with script on a mac (Apple Silicon M3 max):
where Dockerfile is
and dotfiles.tar file contains a single file bin/grepvi, gives the error:
NOTE:
Attached compressed tar file:
dotfiles.tar.gz