Docker使用小筆記
前言
Docker可以說是雲端技術中非常重要的一項專案,這個專案實現了Container技術,使得軟體的執行可以不在受系統環境限制,更加速了雲端技術中Microservice概念的發展,以下就簡單介紹常用的Docker指令。
基本操作
- 離開但不關閉container:
|
|
連著打
- 查看container列表
|
|
- 進入container
|
|
- 關閉container
|
|
Docker Image操作
- 查看image列表
|
|
- 下載image
|
|
- Run
|
|
- image commit
|
|
Reference
https://larrylu.blog/step-by-step-dockerize-your-app-ecd8940696f4
- 在沒有sudo權限使用docker: https://docs.docker.com/engine/security/rootless/
- docker儲存: https://peihsinsu.gitbooks.io/docker-note-book/content/docker-save-image.html
- docker run 操作: https://noob.tw/docker-basic/
- docker port: https://www.runoob.com/docker/docker-run-command.html
- nvidia docker: https://gitlab.com/nvidia/container-images/cuda/blob/master/doc/supported-tags.md https://www.celantur.com/blog/run-cuda-in-docker-on-linux/ https://docs.docker.com/engine/reference/commandline/run/#access-an-nvidia-gpu error解法: https://github.com/NVIDIA/nvidia-docker/issues/1243
- x11 firefox docker: https://stackoverflow.com/questions/16296753/can-you-run-gui-applications-in-a-docker-container
- 指令大全: https://github.com/docker-library/php/issues/359
- 沒有中文的解法: https://github.com/docker-library/php/issues/359