Giter Club home page Giter Club logo

Comments (14)

akialbz avatar akialbz commented on June 15, 2024 2

True. My previous solution can still sometimes failed. Eventually I used this "tar" script instead:

#!/bin/bash
set -e

ORIGINAL_ARGS=("$@")
TRIMMED_ARGS=()
for arg; do
  if [ $arg != "--ignore-failed-read" ]; then
    TRIMMED_ARGS+=($arg)
  fi
done

/usr/bin/tar ${TRIMMED_ARGS[@]}

from docker2singularity.

gmfricke avatar gmfricke commented on June 15, 2024 2

This only started happening when I upgraded to the latest singularity2docker today. The previous version I was using worked fine.

To fix I rolled back to version 2.3.

docker pull singularityware/docker2singularity:v2.3

and using docker2singularity:v2.3 to convert my docker image.

from docker2singularity.

akialbz avatar akialbz commented on June 15, 2024 1

I got the same error. Found a solution from this thread: coreos/bugs#1095
Accordingly I manage to fix it by adding to the RUN:

apk add --update libarchive-tools && \
apk del tar && \
ln -sf $(which bsdtar) /usr/bin/tar

and rebuild the image. It works well for me.

from docker2singularity.

bryan-lunt avatar bryan-lunt commented on June 15, 2024

+1

from docker2singularity.

kasbohm avatar kasbohm commented on June 15, 2024

I have the same issue on my Macs. Mojave.

from docker2singularity.

bryan-lunt avatar bryan-lunt commented on June 15, 2024

Is this for docker images that were created on a Mac, or is it true wherever this gets run?

from docker2singularity.

kasbohm avatar kasbohm commented on June 15, 2024

This is true wherever the image was created i.e. it does not matter if it is pulled from dockerhub or built locally on a Mac.

from docker2singularity.

bryan-lunt avatar bryan-lunt commented on June 15, 2024

I followed the instructions on the other thread. I created my own docker2singularity container using the bsdtar package, replaced the normal Linux tar with a shell script that would strip out some parameters that bsdtar couldn't handle, and then exec bsdtar.

from docker2singularity.

zym1010 avatar zym1010 commented on June 15, 2024

I encountered this issue on Mac, but this problem disappeared on a Docker installed in a CentOS7 VM. Maybe the problem is kernel related as well.

from docker2singularity.

jmansour avatar jmansour commented on June 15, 2024

I'm also encountering this issue on OS X Mojave. I've incorporated @akialbert's fixes in a container (jmansour/docker2singularity).

from docker2singularity.

vsoch avatar vsoch commented on June 15, 2024

hey everyone apologies I haven't been watching the repository and missed this entire thread! I've just updated the build for version 3.1, and have a few questions for moving forward:

  • what versions/s do you need supported?
  • is there a solution that would work across OS / architecture that we could implement?

I'd like to put in changes to address your issue - worst case (if the second point is a "no") is that we have a branch / tag for macos. Let me know.

from docker2singularity.

vsoch avatar vsoch commented on June 15, 2024

Can anyone comment if this is still an issue? If so, which branches?

from docker2singularity.

nathanweeks avatar nathanweeks commented on June 15, 2024

The v3.1 release seemed to resolve this issue for the problematic Docker images I had encountered.

from docker2singularity.

vsoch avatar vsoch commented on June 15, 2024

Cool, thanks @nathanweeks. I'm going to close the issue for now - if anyone that needs an older version runs into issues, please ping me and I'll get to it right away.

from docker2singularity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.