Skip to content

Commit d3d5682

Browse files
committed
corrections
1 parent aed1851 commit d3d5682

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

doc/ipynb/tutorial-docker-container.ipynb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"source": [
2929
"## Setup fidimag docker container with Jupyter Notebook\n",
3030
"\n",
31-
"Pull the `fidimag notebook` container:\n",
31+
"Pull the fidimag notebook container:\n",
3232
"\n",
3333
"```\n",
34-
"docker pull fidimag\n",
34+
"docker pull fidimag/notebook\n",
3535
" ```"
3636
]
3737
},
@@ -60,9 +60,9 @@
6060
"```\n",
6161
"docker-machine ip\n",
6262
"```\n",
63-
"For example, if `docker-machine ip` returns `192.168.99.100`, then the right URL to paste into the browser on the host system is `http://192.168.99.100/30000`.\n",
63+
"For example, if `docker-machine ip` returns `192.168.99.100`, then the right URL to paste into the browser on the host system is `http://192.168.99.100:30000`.\n",
6464
"\n",
65-
"[How does this work on Windows? Pull requests welcome.]"
65+
"[*How does this work on Windows? Pull requests welcome.*]"
6666
]
6767
},
6868
{
@@ -84,10 +84,13 @@
8484
"## Show active Docker containers\n",
8585
"```docker ps``` lists all running containers.\n",
8686
"\n",
87-
"To only show the `id`s, we can use ```docker ps -q```\n",
87+
"To only show the `id`s, we can use \n",
88+
"\n",
89+
" docker ps -q\n",
8890
"\n",
8991
"To only show the containers that was last started, we can use the `-l` flag:\n",
90-
"``` docker ps -l```"
92+
"\n",
93+
" docker ps -l"
9194
]
9295
},
9396
{
@@ -163,7 +166,7 @@
163166
"We can use the container like this to achieve that:\n",
164167
"\n",
165168
"```\n",
166-
"docker run -v `pwd`:/io -ti fidimag/notebook python hello.py```\n",
169+
"docker run -v `pwd`:/io -ti fidimag/notebook python run.py```\n",
167170
"\n",
168171
"The ```-v `pwd`:/io``` tells the docker container to take the current working directory on the host (``` `pwd` ```) and mount it to the path `/io` on the container. The container is set up so that the default working directory is `/io`."
169172
]

0 commit comments

Comments
 (0)