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: doc/ipynb/tutorial-docker-container.ipynb
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,10 @@
28
28
"source": [
29
29
"## Setup fidimag docker container with Jupyter Notebook\n",
30
30
"\n",
31
-
"Pull the `fidimag notebook` container:\n",
31
+
"Pull the fidimag notebook container:\n",
32
32
"\n",
33
33
"```\n",
34
-
"docker pull fidimag\n",
34
+
"docker pull fidimag/notebook\n",
35
35
" ```"
36
36
]
37
37
},
@@ -60,9 +60,9 @@
60
60
"```\n",
61
61
"docker-machine ip\n",
62
62
"```\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",
64
64
"\n",
65
-
"[How does this work on Windows? Pull requests welcome.]"
65
+
"[*How does this work on Windows? Pull requests welcome.*]"
66
66
]
67
67
},
68
68
{
@@ -84,10 +84,13 @@
84
84
"## Show active Docker containers\n",
85
85
"```docker ps``` lists all running containers.\n",
86
86
"\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",
88
90
"\n",
89
91
"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"
91
94
]
92
95
},
93
96
{
@@ -163,7 +166,7 @@
163
166
"We can use the container like this to achieve that:\n",
164
167
"\n",
165
168
"```\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",
167
170
"\n",
168
171
"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`."
0 commit comments