Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template parsing error #126

Closed
wt12318 opened this issue Dec 24, 2022 · 4 comments
Closed

Template parsing error #126

wt12318 opened this issue Dec 24, 2022 · 4 comments

Comments

@wt12318
Copy link

wt12318 commented Dec 24, 2022

Hi friend, what is your question?

I installed the singularity using Conda, and use this tools to convert my docker image:

docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /home/data_backup1/homelette/singularity_image:/output \
--privileged -t --rm \
quay.io/singularity/docker2singularity  \
homelette

But I got the error:

Image Format: squashfs
Docker Image: homelette

Template parsing error: template: :1:2: executing "" at <.Size>: map has no entry for key "Size"

How could I fix this problem?

@vsoch
Copy link
Member

vsoch commented Dec 24, 2022

I'm not sure how you are using a singularity conda install with this container - but generally the best practice to convert docker to singularity is just to pull directly,e.g., singularity pull docker://ubuntu

@wt12318
Copy link
Author

wt12318 commented Dec 24, 2022

Hi,

I used Conda to install singularity, and construct the docker image from : https://github.com/PhilippJunk/homelette/blob/master/docker/construct_local_image.sh (docker pull philippjunk/homelette_template ) and then want to use the docker2singularity to convert this image to singularity image, but the error occur.

@vsoch
Copy link
Member

vsoch commented Dec 24, 2022

Yes so instead you should singularity pull from Docker directly.

@wt12318
Copy link
Author

wt12318 commented Dec 24, 2022

Thank you. I got it.

@wt12318 wt12318 closed this as completed Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants