sudo singularity import <singularityshell.img> <tarfilename>.
Tried various things including increasing the singularityshell.img size from default 768M to 2048M (the docker container is 732M in size) but always got this error
Bootstrap initialization
No bootstrap definition passed, updating container
Executing Prebootstrap module
Executing Postbootstrap module
ERROR: Container does not contain the valid minimum requirement of /bin/sh
There was actually a /bin/sh in the docker container so I think this is some generic error.
I finally managed to do the conversion by running the image interactively and then doing this
docker export <containername> | sudo singularity import <singularityshell.img>
Am I doing something wrong while importing the tar file?
I did not try creating a local registry and pushing the image to it etc.
My question is why doesn't the tar method work??
Thanks
S