20
20
21
21
To view the Neurodocker help message
22
22
::
23
- docker run --rm kaczmarj/neurodocker:0.4.0 generate --help
23
+ docker run --rm kaczmarj/neurodocker:0.4.0 generate [docker|singularity] --help
24
+
25
+ Note: choose between ``docker `` and ``singularity `` in ``[docker|singularity] ``.
24
26
25
27
1. Users must specify a base Docker image and the package manager. Any Docker
26
28
image on DockerHub can be used as your base image. Common base images
@@ -44,20 +46,11 @@ To view the Neurodocker help message
44
46
Create a Dockerfile or Singularity recipe with FSL, Python 3.6, and Nipype
45
47
--------------------------------------------------------------------------
46
48
47
- This command prints a Dockerfile (the specification for a Docker image) to the
49
+ This command prints a Dockerfile (the specification for a Docker image) or a
50
+ Singularity recipe (the specification for a Singularity container) to the
48
51
terminal.
49
52
::
50
- $ docker run --rm kaczmarj/neurodocker:0.4.0 generate docker \
51
- --base debian:stretch --pkg-manager apt \
52
- --fsl version=5.0.10 \
53
- --miniconda create_env=neuro \
54
- conda_install="python=3.6 traits" \
55
- pip_install="nipype"
56
-
57
- This command prints a Singularity recipe (the specification for a Singularity
58
- container) to the terminal.
59
- ::
60
- $ docker run --rm kaczmarj/neurodocker:0.4.0 generate singularity \
53
+ $ docker run --rm kaczmarj/neurodocker:0.4.0 generate [docker|singularity] \
61
54
--base debian:stretch --pkg-manager apt \
62
55
--fsl version=5.0.10 \
63
56
--miniconda create_env=neuro \
@@ -92,7 +85,7 @@ The Singularity recipe can be saved and used to build the Singularity container
92
85
--miniconda create_env=neuro \
93
86
conda_install="python=3.6 traits" \
94
87
pip_install="nipype" > Singularity
95
- $ singularity build Singularity my_nipype.sqsh
88
+ $ singularity build my_nipype.simg Singularity
96
89
97
90
98
91
Use NeuroDebian
@@ -120,7 +113,7 @@ running the container.
120
113
::
121
114
$ docker run --rm kaczmarj/neurodocker:0.4.0 generate docker \
122
115
--base centos:7 --pkg-manager yum \
123
- --dcm2niix version=master \
116
+ --dcm2niix version=master method=source \
124
117
--user neuro \
125
118
--miniconda create_env=neuro conda_install="jupyter traits nipype" \
126
119
> Dockerfile
@@ -129,8 +122,10 @@ running the container.
129
122
130
123
Copy local files into a container.
131
124
::
132
- $ docker run --rm kaczmarj/neurodocker:v0.3.2 generate [docker|singularity] \
125
+ $ docker run --rm kaczmarj/neurodocker:0.4.0 generate [docker|singularity] \
133
126
--base ubuntu:16.04 --pkg-manager apt \
134
127
--copy relative/path/to/source.txt /absolute/path/to/destination.txt
135
128
129
+ See the `Neurodocker examples page <https://github.com/kaczmarj/neurodocker/tree/master/examples/ >`_ for more.
130
+
136
131
.. include :: ../links_names.txt
0 commit comments