Skip to content

Building platform linux/amd64 images on Apple silicon with Docker gives tar errors for Fedora 44, 45 but not for 43 #125

@mhulsen

Description

@mhulsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions