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
Fix/published ports not accessible in host mode (#502)
* Update README.md
To resolve the problem of published ports being discarded in the host network mode, delete the "--network='host'" option.
* Update README.md
I have included extra documentation on the docker network mode and also added relevant local commands to make it easier to follow.
* Reformat Docker run sections
---------
Co-authored-by: Michael Chin <mchin188@yahoo.com>
Copy file name to clipboardExpand all lines: docker/README.md
+32-13Lines changed: 32 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,18 @@
1
-
2
-
3
1
Run `%load_ext graph_notebook.magics` at the top of a notebook to enable gremlin magic like `%%gremlin`
4
2
5
3
Default password is `admin`.
6
4
7
5
## Example Runs
6
+
7
+
### On Linux:
8
+
- Note that these commands invoke [host networking mode](https://docs.docker.com/network/host/). This mode is only compatible with Linux, and may cause issues if run on a Mac or Windows host.
9
+
8
10
```sh
9
-
docker run --network="host"-p 8888:8888 -t graph-notebook
11
+
docker run --network="host" -p 8888:8888 -t graph-notebook
10
12
11
13
# Sharing directories
12
-
docker run --network="host" -p 8889:8889 -p 8888:8888 -v $(pwd)/out:/working
14
+
docker run --network="host" -p 8889:8889 -p 8888:8888 -v $(pwd)/out:/working
15
+
13
16
14
17
# For connecting with IAM Auth
15
18
docker run -p 8888:8888 \
@@ -20,11 +23,32 @@ docker run -p 8888:8888 \
20
23
graph-notebook
21
24
```
22
25
23
-
Example Notebooks are placed in the `Example Notebooks` sub-directory
26
+
### On Mac/Windows:
27
+
28
+
```sh
29
+
docker run -p 8888:8888 -t graph-notebook
30
+
31
+
# Sharing directories
32
+
docker run -p 8889:8889 -p 8888:8888 -v $(pwd)/out:/working
33
+
34
+
# For connecting with IAM Auth
35
+
docker run -p 8888:8888 \
36
+
-e AWS_ACCESS_KEY_ID \
37
+
-e AWS_SECRET_ACCESS_KEY \
38
+
-e AWS_SESSION_TOKEN \
39
+
-e AWS_REGION="us-east-1" \
40
+
graph-notebook
41
+
```
42
+
43
+
44
+
## Post-Launch Configuration
45
+
46
+
Example Notebooks are placed in the `Example Notebooks` sub-directory.
24
47
25
48
Within the Jupyter Notebook you must configure the Notebook settings to account for `localhost` or `remote` connections.
26
49
27
-
### Example Localhost Connection:
50
+
### Example Localhost Connection
51
+
28
52
```ipynb
29
53
%%graph_notebook_config
30
54
{
@@ -40,7 +64,8 @@ Within the Jupyter Notebook you must configure the Notebook settings to account
0 commit comments