回答編集履歴

2

Add expression

2020/08/17 10:46

投稿

y_shinoda
y_shinoda

スコア3272

test CHANGED
@@ -48,7 +48,7 @@
48
48
 
49
49
  ```console
50
50
 
51
- $ docker run -p 8888:8888 -v $(pwd):/workspace --name jlab jlab:latest
51
+ $ docker run -p 8888:8888 -v "$(pwd):/workspace" --name jlab jlab:latest
52
52
 
53
53
  [I 10:10:07.266 LabApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
54
54
 
@@ -73,3 +73,55 @@
73
73
  [I 10:10:08.516 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
74
74
 
75
75
  ```
76
+
77
+
78
+
79
+ 次のコマンドを順に試すと、どこまで実行可能でしょうか?
80
+
81
+
82
+
83
+ 1:
84
+
85
+
86
+
87
+ ```console
88
+
89
+ docker run jlab:latest
90
+
91
+ ```
92
+
93
+
94
+
95
+ 2:
96
+
97
+
98
+
99
+ ```console
100
+
101
+ docker run --name jlab jlab:latest
102
+
103
+ ```
104
+
105
+
106
+
107
+ 3:
108
+
109
+
110
+
111
+ ```console
112
+
113
+ docker run -p 8888:8888 --name jlab jlab:latest
114
+
115
+ ```
116
+
117
+
118
+
119
+ 4:
120
+
121
+
122
+
123
+ ```console
124
+
125
+ docker run -p 8888:8888 -v "$(pwd):/workspace" --name jlab jlab:latest
126
+
127
+ ```

1

Add second answer

2020/08/17 10:46

投稿

y_shinoda
y_shinoda

スコア3272

test CHANGED
@@ -1,3 +1,7 @@
1
+ ## 元の回答
2
+
3
+
4
+
1
5
  手順 7 のコマンドを正しく入力できていない可能性が高いです
2
6
 
3
7
 
@@ -11,3 +15,61 @@
11
15
 
12
16
 
13
17
  参考: [Answer: Docker command returns "invalid reference format"](https://stackoverflow.com/a/47435999/12721873?stw=2)
18
+
19
+
20
+
21
+ ## 追記
22
+
23
+
24
+
25
+ > 参考文献を使用してコードを記載してみました。以下のコードで合っていますか。
26
+
27
+ > ご教授お願い致します。
28
+
29
+
30
+
31
+ ```console
32
+
33
+ docker run -p 8888:8888 -v "/Users/***/Desktop:/workspace" --name jlab {********}
34
+
35
+ ```
36
+
37
+
38
+
39
+ 最後の `{********}` は何を表していますか?
40
+
41
+ 参考文献の記載を確認してみてください
42
+
43
+
44
+
45
+ 少なくとも、次のコマンドを実行すれば起動します:
46
+
47
+
48
+
49
+ ```console
50
+
51
+ $ docker run -p 8888:8888 -v $(pwd):/workspace --name jlab jlab:latest
52
+
53
+ [I 10:10:07.266 LabApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
54
+
55
+ [W 10:10:08.497 LabApp] All authentication is disabled. Anyone who can connect to this server will be able to run code.
56
+
57
+ [I 10:10:08.508 LabApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.7/site-packages/jupyterlab
58
+
59
+ [I 10:10:08.509 LabApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab
60
+
61
+ [W 10:10:08.511 LabApp] JupyterLab server extension not enabled, manually loading...
62
+
63
+ [I 10:10:08.515 LabApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.7/site-packages/jupyterlab
64
+
65
+ [I 10:10:08.515 LabApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab
66
+
67
+ [I 10:10:08.516 LabApp] Serving notebooks from local directory: /
68
+
69
+ [I 10:10:08.516 LabApp] The Jupyter Notebook is running at:
70
+
71
+ [I 10:10:08.516 LabApp] http://(c1ba7190b383 or 127.0.0.1):8888/
72
+
73
+ [I 10:10:08.516 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
74
+
75
+ ```