実行環境
macOS Catarina ver10.15.6(19G2021)
実行内容
***
docker Install
↓
docker run hello-world (ターミナル)
↓
デスクトップローカルにMydockerフォルダを作り。その中にdockerfileを作り。sublimetextから作成。
マウントする過程でエラーが出てしまったので解決策を教えてください。
*dockerfileの場所
dockerile
1/Users/***/Desktop/MyDocker 2
*ファイル内のコード
dockerile
1RUN apt-get update && apt-get install -y sudo wget vim curl gawk make gcc 2 3RUN wget https://repo.continuum.io/archive/Anaconda3-2019.03-Linux-x86_64.sh && \ 4 sh Anaconda3-2019.03-Linux-x86_64.sh -b && \ 5 rm -f Anaconda3-2019.03-Linux-x86_64.sh && \ 6 sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - && \ 7 sudo apt-get install -y nodejs 8 9ENV PATH $PATH:/root/anaconda3/bin 10 11RUN mkdir /workspace 12 13CMD ["jupyter-lab", "--ip=0.0.0.0","--port=8888" ,"--no-browser", "--allow-root", "--LabApp.token=''"]
↓
デスクトップローカルにdockerfileを作成し。ターミナルで 確認。
ls /Users/***/Desktop/MyDocker ↓ dockerfile
↓
terminal
1dokcer build -t ilab:latest /Users/***/Desktop/MyDocker 2↓ 3Successfully built *********** 4Successfully tagged ilab:latest 5
↓
terminal
1docker run -p 8888:8888 -v /Users/********/Desktop/MyDocker:/workspace --name jlab {********}←Successfully builtの時のIDをコピペ 2↓ 3docker: invalid reference format. 4See 'docker run --help'.
terminal
1docker run jlab:latest 2↓ 3Unable to find image 'jlab:latest' locally 4docker: Error response from daemon: pull access denied for jlab, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. 5See 'docker run --help'.
terminal
1docker run --name jlab jlab:latest 2↓ 3Unable to find image 'jlab:latest' locally 4docker: Error response from daemon: pull access denied for jlab, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. 5See 'docker run --help'.
terminal
1docker run -p 8888:8888 -v "$(pwd):/workspace" --name jlab jlab:latest 2↓ 3Unable to find image 'jlab:latest' locally 4docker: Error response from daemon: pull access denied for jlab, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. 5See 'docker run --help'.
*追記
terminal
1docker run -p 8888:8888 -v "$(pwd):/workspace" --name jlab ilab:latest 2↓ 3[I 05:29:22.682 LabApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret 4[W 05:29:23.918 LabApp] All authentication is disabled. Anyone who can connect to this server will be able to run code. 5[I 05:29:23.934 LabApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.7/site-packages/jupyterlab 6[I 05:29:23.934 LabApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab 7[W 05:29:23.936 LabApp] JupyterLab server extension not enabled, manually loading... 8[I 05:29:23.938 LabApp] JupyterLab extension loaded from /root/anaconda3/lib/python3.7/site-packages/jupyterlab 9[I 05:29:23.938 LabApp] JupyterLab application directory is /root/anaconda3/share/jupyter/lab 10[I 05:29:23.939 LabApp] Serving notebooks from local directory: / 11[I 05:29:23.939 LabApp] The Jupyter Notebook is running at: 12[I 05:29:23.939 LabApp] http://(**or**):8888/ 13[I 05:29:23.939 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 14 15
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/09/17 05:19
2020/09/17 05:26
2020/09/17 05:33
2020/09/17 05:34
2020/09/17 05:36