Skip to content

Commit

Permalink
Update apptainer.md (#104)
Browse files Browse the repository at this point in the history
* fixed not working commands for apptainer
  • Loading branch information
sellth authored Sep 1, 2023
1 parent a43b894 commit ee9f563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bih-cluster/docs/how-to/software/apptainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ To convert the docker image `docker_image_name` to the apptainer image `apptaine
The output image will be located in `output_directory_for_images`.

```bash
host:~$ docker run -v /var/run/docker.sock:/var/run/docker.sock --privileged -t --rm quay.io/singularity/docker2singularity -v /output_directory_for_images/:/output --name apptainer_image_name docker_image_name
host:~$ docker run -v /var/run/docker.sock:/var/run/docker.sock -v /output_directory_for_images/:/output --privileged -t --rm quay.io/singularity/docker2singularity --name apptainer_image_name docker_image_name
```

The resulting image can then directly be used as image:

```bash
host:~$ apptainer bash apptainer_image_name
host:~$ apptainer exec apptainer_image_name.sif bash
```

## Conversion Compatibility
Expand Down

0 comments on commit ee9f563

Please sign in to comment.