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

question about Singularity bootstap from docker #192

Open
Jia94 opened this issue May 9, 2018 · 1 comment
Open

question about Singularity bootstap from docker #192

Jia94 opened this issue May 9, 2018 · 1 comment

Comments

@Jia94
Copy link

Jia94 commented May 9, 2018

Excuse me !
There is a docker image that built on my own,so if I want to creat one Sinualrity image based upon this docker image ,do I have to pull the docker image to Docker Hub? and then how I write the section of "From"?

@vsoch
Copy link
Member

vsoch commented May 9, 2018

The easiest thing is to:

  1. Get the image on Docker Hub. You can do that with push or an automated build from a Github repository. I like the second because I can just put my Dockerfile on Github, and it will build for me when I push commits :)
  2. Once the image is done building (green successful build) you Bootstrap recipe would look like this:
Bootstrap: docker
From: Jia94/image-name

...
  1. Then build or pull. You could also just build it directly, or pull, either of these would work:
# Without definition file
singularity pull docker://Jia94/image-name
sudo singularity build myimage.simg docker://Jia94/image-name

# With definition file "Singularity" shown above
sudo singularity build myimage.simg Singularity

The only benefit to using a definition file is if you want to modify the image after build on Docker Hub. If not, you would be able to just pull or build without it.

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