Comments (14)
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.
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.
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.
+1
from docker2singularity.
I have the same issue on my Macs. Mojave.
from docker2singularity.
Is this for docker images that were created on a Mac, or is it true wherever this gets run?
from docker2singularity.
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.
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.
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.
I'm also encountering this issue on OS X Mojave. I've incorporated @akialbert's fixes in a container (jmansour/docker2singularity).
from docker2singularity.
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.
Can anyone comment if this is still an issue? If so, which branches?
from docker2singularity.
The v3.1 release seemed to resolve this issue for the problematic Docker images I had encountered.
from docker2singularity.
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)
- hit a panic: runtime error HOT 22
- Cannot (easily) build huge images. HOT 7
- tar: invalid tar magic HOT 3
- Is it possible to run this in a github action HOT 2
- Template parsing error HOT 4
- Create 3.2.1 release HOT 1
- 10-docker2singularity.sh PATH overrides 10-docker.sh HOT 15
- Unable to exec a created singularity image as a non-root user HOT 5
- Strange Error when trying to convert - addLabel.py: No such file or directory HOT 3
- Update Docker Deploy section
- Error When with -w or -f Options at line 110 $1: unbound variable HOT 14
- Windows: Problem with creating singularity image HOT 9
- Not Outputting Final Image HOT 5
- Tar: Permission denied error during build. HOT 3
- Building ppc images on x86 hardware HOT 2
- how to build encrypted singularity images HOT 1
- Error response from daemon: OCI runtime create failed: container_linux.go:370 HOT 1
- Error when I try to run a container - ABORT : Retval = 255 HOT 3
- Using docker2singularity to build images from Singularity definition files HOT 2
- Maintaining a Singularity image off a docker container HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker2singularity.