Singularity: Difference between revisions

Marked this version for translation
No edit summary
(Marked this version for translation)
Line 147: Line 147:
$ singularity build gqcp.sif docker-archive://gqcp.tar</source>
$ singularity build gqcp.sif docker-archive://gqcp.tar</source>


<!--T:133-->
One can also use a '''Dockerfile''' to create Singularity images, but this is a two step process.
One can also use a '''Dockerfile''' to create Singularity images, but this is a two step process.
* The first step is to create a Docker image with the Dockerfile. This step should be executed on your VM or Linux machine, where you have sudo access. Go to the directory which contains the Dockerfile and run the command <tt>sudo docker build -t CC:latest .</tt>. By passing '.' as a parameter we are asking Docker to search for the Dockerfile in the current directory. This command will create a Docker image with the name '''CC''' and assign the image a tag with the value '''latest'''. Remember that latest is the default tag that Docker assigns to an image, so if you don't provide a tag, the image will use the default tag value '''latest'''.  
* The first step is to create a Docker image with the Dockerfile. This step should be executed on your VM or Linux machine, where you have sudo access. Go to the directory which contains the Dockerfile and run the command <tt>sudo docker build -t CC:latest .</tt>. By passing '.' as a parameter we are asking Docker to search for the Dockerfile in the current directory. This command will create a Docker image with the name '''CC''' and assign the image a tag with the value '''latest'''. Remember that latest is the default tag that Docker assigns to an image, so if you don't provide a tag, the image will use the default tag value '''latest'''.  
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits