Skip to content

Commit 2d8dfcf

Browse files
committed
Review for docker compose logs
1 parent 20e8f69 commit 2d8dfcf

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ using Machine Learning
1616

1717
## Execution in Docker Environment
1818

19-
All code is executable in Docker environment. There is a Docker Compose file that build an image based
20-
on Tensorflow with Jupyter Notebook integrated. (See Dockerfile inside nlp folder)
19+
All code is executable in Docker environment. There is a Docker Compose file that build an image based on [Tensorflow with Jupyter Notebook integrated](https://hub.docker.com/r/tensorflow/tensorflow/tags?page=1). (See Dockerfile inside nlp folder)
2120
The image contains also some default notebooks provided by tensorflow for some simple tutorials.
21+
2222
Inside nlp folder are presente the directiories for every task based on repository organization.
2323

2424
To build and run the container execute:
@@ -32,10 +32,24 @@ You can see logs of servive typing:
3232
```shell
3333
docker-compose logs -f nlp
3434
```
35+
Below is an example of logs obtained from the previous command. From the logs
36+
you can see the link to access the Jupyter Notebooks. Copy url that begins with *http://localhost:8888/?token=* and paste it on your browser.
3537

36-
Just launched the container you can see on logs the url to log into jupyter notebook environment.
37-
Copy url that begins with *http://127.0.0.1:8888/?token=* and paste it on your browser.
38-
Then go to *http://localhost:8888* and run notebooks.
38+
```shell
39+
nlp | [I 12:30:11.008 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
40+
nlp | [I 12:30:11.278 NotebookApp] Serving notebooks from local directory: /tf
41+
nlp | [I 12:30:11.278 NotebookApp] Jupyter Notebook 6.4.3 is running at:
42+
nlp | [I 12:30:11.278 NotebookApp] http://b5c600697c97:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
43+
nlp | [I 12:30:11.278 NotebookApp] or http://127.0.0.1:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
44+
nlp | [I 12:30:11.278 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
45+
nlp | [C 12:30:11.283 NotebookApp]
46+
nlp |
47+
nlp | To access the notebook, open this file in a browser:
48+
nlp | file:///root/.local/share/jupyter/runtime/nbserver-1-open.html
49+
nlp | Or copy and paste one of these URLs:
50+
nlp | http://b5c600697c97:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
51+
nlp | or http://127.0.0.1:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
52+
```
3953

4054
To rebuild image type:
4155

0 commit comments

Comments
 (0)