Category Archives: Docker

[docker] docker 的安裝

這個部分變化太快了,看了一下自己在 2014 年前的 post 都已經舊了。 安裝 (建議):

安裝完後,將自己加入 docker 這個 group,才不用一直打 sudo (這部分的指令執行完,可能需要從開機!):

參考資料: https://philipzheng.gitbooks.io/docker_practice/content/install/ubuntu.html https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user

Posted in Docker | Tagged | Leave a comment

[轉貼] Docker Explained: How To Containerize Python Web Applications

文章網址: Docker Explained: How To Containerize Python Web Applications

Posted in Docker | Tagged | Leave a comment

[轉貼] Docker v.s. Heroku

參考連結: Docker v.s. Heroku

Posted in Docker | Tagged | Leave a comment

[Docker] Dockerfile 教學文件

官方文件: Dockerfile Reference Best practices for writing Dockerfiles

Posted in Docker | Tagged | Leave a comment

[Docker] 怎麼樣可以不用打 sudo ?

執行完後,重新開機! 資料來源: Docker Installation 參考資料: gpasswd

Posted in Docker | Tagged | Leave a comment

[Docker] How to remove all containers and images?

資料來源: Docker: Remove all images and containers

Posted in Docker | Tagged | Leave a comment

[Docker] 命令執行結束後,資料會不會遺失?

如果對 container 進行變更,必須要使用 docker commit 將他存成 image,不然資料有可能會遺失。 建議使用 dockerfile 來建立 image。 參考資料: I lose my data when the container exits

Posted in Docker | Tagged | Leave a comment

[Docker] Container 跟 Image 的差別?

An image is the set of layers that are built up and can be moved around. Images are read-only. http://docs.docker.io/en/latest/terms/image/ http://docs.docker.io/en/latest/terms/layer/ A container is an active (or inactive if exited) stateful instantiation of an image. http://docs.docker.io/en/latest/terms/container/ 資料來源: In Docker, what’s … Continue reading

Posted in Docker | Tagged | Leave a comment

[Docker] 一些教學連結

Docker —— 從入門到實踐 Shipping python project by docker 門外漢的 Docker 小試身手 Getting Started with Docker

Posted in Docker | Tagged , | Leave a comment