Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

無法順利實作教學內容 #4

Open
rs6000 opened this issue Sep 12, 2018 · 2 comments
Open

無法順利實作教學內容 #4

rs6000 opened this issue Sep 12, 2018 · 2 comments

Comments

@rs6000
Copy link

rs6000 commented Sep 12, 2018

大大你好
之前都有在關注你發表有關python的教學內容

最近這兩天在看您發表有關docker的教學
但對內容的編排上有小小的疑惑

之前就有觀看大大其他的教學影片
如python的爬蟲 跟 Django教學
實作都可以順利的完成

但在這一篇docker從無到有 的教學
我就無法順利閱讀下去&實作

文章開頭先介紹docker &安裝
大大是安裝在windows10上面

我是裝在Google Cloud Platform上面

docker裝好後,大大有介紹用 Kitematic 這個管理工具
我是安裝 大大在文章後段提到的 portainer
我也裝在GCP上面(GCP管理頁面開好port)也順利看到portainer 的畫面跟登入操作

文章內容到了 "指令介紹"

建立image
docker create -it --name busybox busybox

文章內容從這邊開始我就無法實作下去...(無法理解內容的編排)

我以為從建立第一個 image 之後
文章內容應該導向
"怎麼從無到有的在Docker的環境裡去建立 Django + PostgreSQL"

實際上
建立busybox 這個image後,就開始說明一些docker的指令用法
文章的標題也是"指令介紹"

看完指令介紹後,接著介紹 Volume 、 network、docker-compose、Docker Registry

最後是 用 "Docker 實戰 Django 以及 Postgre"
看到這邊我無法將這邊的內容跟文章前段去做連接

我以為是要先去pull Django 、Postgre之類的
然後去做設定...

整篇文章看完,我是無法從無到有的用docker建立一個django環境
也許是我個人的問題
感謝大大花時間那麼多時間寫教學文章!!
我會繼續收看的 XD

ps:
1.
關於docker 我也有一點不能理解
docker本身沒有含os
那為什麼 從Docker下載 Nginx
在沒有pull其他os的情況下~可以run Nginx 這個image...
是靠原本主機的OS嗎?

因為是第一次接觸docker
我以為跟用VM差不多
先有OS + LAMP + Django 之類的
只不過這些都可以拆開成單獨的image 後組合起來

@twtrubiks
Copy link
Owner

twtrubiks commented Oct 4, 2018

建議你先看我文章開頭 docker 原理介紹和一些 docker 的指令,先了解這些,再去看如何使用 docker 建立 django 的範例。
有些非常基本的介紹,我就沒有再說明了,像是 git pull 這個....
不然你可以單獨先去看我 django 的文章,該 repo 都有寫參考連結。

@qrtt1
Copy link

qrtt1 commented Dec 29, 2019

如果是想要感受一下 docker 開出來的 container,通常是用 run

docker run -it --name busybox busybox

而,這臨時開出來體驗用的東西,大多是拋棄型的,那會多加 --rm 的選項,當你退出容器時自動刪除

docker run -it --rm --name busybox busybox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants