You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hello_nextflow/05_hello_containers.md
+50-30Lines changed: 50 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ The `'<container>'` part is the URI address of the container image.
86
86
As an example, let's pull a container image that contains [cowpy](https://github.com/jeffbuttars/cowpy), a python implementation of a tool called `cowsay` that generates ASCII art to display arbitrary text inputs in a fun way.
87
87
88
88
There are various repositories where you can find published containers.
89
-
We used the [Seqera Containers](https://seqera.io/containers/) service to generate this Docker container from the `cowpy` Conda package: `'community.wave.seqera.io/library/cowpy:1.1.5--3db457ae1977a273'`.
89
+
We used the [Seqera Containers](https://seqera.io/containers/) service to generate this Docker container image from the `cowpy` Conda package: `'community.wave.seqera.io/library/cowpy:1.1.5--3db457ae1977a273'`.
90
90
91
91
Run the complete pull command:
92
92
@@ -163,7 +163,7 @@ You can also run a container interactively, which gives you a shell prompt insid
163
163
164
164
#### 1.3.1. Spin up the container
165
165
166
-
To run interactively, we just add `-it` to the `docker pull` command.
166
+
To run interactively, we just add `-it` to the `docker run` command.
167
167
Optionally, we can specify the shell we want to use inside the container by appending _e.g._`/bin/bash` to the command.
168
168
169
169
```bash
@@ -200,7 +200,7 @@ For example, the tool documentation says we can change the character ('cowacter'
200
200
cowpy "Hello Containers" -c tux
201
201
```
202
202
203
-
Now the output shows the Linux penguin, Tux, instead of the default cow, because we specified `-c tux` parameter.
203
+
Now the output shows the Linux penguin, Tux, instead of the default cow, because we specified the `-c tux` parameter.
204
204
205
205
```console title="Output"
206
206
__________________
@@ -250,7 +250,7 @@ One way to do this is to **mount** a **volume** from the host system into the co
250
250
-v <outside_path>:<inside_path>
251
251
```
252
252
253
-
In our case `<outside_path>` will be the current working directory, so we can just use a dot (`.`), and `<outside_path>` is just a name we make up; let's call it `/data`.
253
+
In our case `<outside_path>` will be the current working directory, so we can just use a dot (`.`), and `<inside_path>` is just a name we make up; let's call it `/data`.
254
254
255
255
To mount a volume, we replace the paths and add the volume mounting argument to the docker run command as follows:
256
256
@@ -265,6 +265,7 @@ You can check that it works by listing the contents of `/data`:
265
265
```bash
266
266
ls /data
267
267
```
268
+
Depending on what part of this training you've done before, the output below my look slightly different.
You see that the character is saying all the greetings, just as it did when we ran the `cowpy` command on the `greetings.csv` file from inside the container.
0 commit comments