1. 도커 컨테이너 로그를 확인하기 전에 컨테이너 목록을 확인합니다.
1 2 3 4 5 6 7 | $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9ee69b720f7a hello-world "/hello" 26 minutes ago Exited (0) 26 minutes ago stupefied_mahavira f5ee9e7b31a4 teamlab/pydata-tensorflow:0.1 "/opt/start" 3 hours ago Created quirky_jones 23b119d646f9 teamlab/pydata-tensorflow:0.1 "/opt/start" 3 hours ago Exited (137) 23 minutes ago fervent_fermi c8114d22183d mysql:5.7 "docker-entrypoint..." 4 hours ago Up 4 hours 0.0.0.0:3306->3306/tcp mysql | cs |
2. 아래와 같이 "docker logs [container id]" 명령어를 실행합니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | $ docker logs 23b Installed kernelspec python3 in /usr/local/share/jupyter/kernels/python3 [I 02:17:30.472 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret [I 02:17:30.581 NotebookApp] Serving notebooks from local directory: /notebooks [I 02:17:30.581 NotebookApp] 0 active kernels [I 02:17:30.581 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/ [I 02:17:30.581 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). WARNING:tensorflow:IOError [Errno 2] No such file or directory: '/opt/conda/envs/ml_python34/lib/python3.4/site-packages/tensorflow/tensorboard/TAG' on path /opt/conda/envs/ml_python34/lib/python3.4/site-packages/tensorflow/tensorboard/TAG WARNING:tensorflow:Unable to read TensorBoard tag [I 02:22:32.579 NotebookApp] 302 GET / (172.17.0.1) 1.42ms [I 03:22:22.845 NotebookApp] 302 GET / (192.168.30.1) 2.61ms [I 03:23:30.441 NotebookApp] Creating new notebook in [I 03:23:30.493 NotebookApp] Writing notebook-signing key to /root/.local/share/jupyter/notebook_secret [I 03:23:31.173 NotebookApp] Kernel started: c28ac959-9718-4017-ae0c-c47dc7a9fe07 [I 03:27:06.448 NotebookApp] Saving file at /Untitled.ipynb [I 04:35:06.273 NotebookApp] Saving file at /Untitled.ipynb [I 04:36:51.835 NotebookApp] 302 GET / (172.17.0.1) 1.54ms [I 04:36:51.866 NotebookApp] Saving file at /Untitled.ipynb [I 04:36:59.599 NotebookApp] Kernel shutdown: c28ac959-9718-4017-ae0c-c47dc7a9fe07 [W 04:36:59.603 NotebookApp] delete /Untitled.ipynb [I 04:38:26.615 NotebookApp] Creating new notebook in [I 04:38:27.467 NotebookApp] Kernel started: 6c3891ba-e08f-4101-9975-437f6c452b58 [I 04:40:27.407 NotebookApp] Saving file at /Untitled.ipynb [I 04:42:27.403 NotebookApp] Saving file at /Untitled.ipynb | cs |
* 로그를 확인해보니 에러도 있고 경고도 있고 합니다.
* 트러블 슈팅을 진행하는 데 있어서 로그를 확인하는 습관은 매우 중요하므로 자주 확인하는 것이 좋습니다.
'Tools > Docker' 카테고리의 다른 글
docker 접속 (0) | 2017.11.02 |
---|---|
Docker Toolbox 설치 (0) | 2017.10.31 |
docker image 목록 확인 (0) | 2017.10.30 |
docker container 실행 중지 (0) | 2017.10.30 |
[알림] The program 'mysql' can be found in the following packages (0) | 2017.10.30 |