後續步驟What's next

雖然您已完成本教學課程,但仍有更多相關資訊可瞭解容器!Although you're done with your tutorial, there's still a LOT more to learn about containers! 您將不會在此深入探討,但以下是其他幾個可供您參考的區域!You're not going to go deep-dive here, but here are a few other areas to look at next!

容器協調流程Container orchestration

在生產環境中執行容器是很困難的。Running containers in production is tough. 您不想要登入電腦,只要執行 docker rundocker-compose upYou don't want to log into a machine and simply run a docker run or docker-compose up. 為什麼不用?Why not? 嗯,如果容器骰子,會發生什麼事?Well, what happens if the containers die? 您如何在多部電腦之間進行調整?How do you scale across several machines? 容器協調流程可解決此問題。Container orchestration solves this problem. Kubernetes、Swarm、Nomad 和 AKS 等工具都能協助您解決這個問題,全都以稍微不同的方式來解決。Tools like Kubernetes, Swarm, Nomad, and AKS all help solve this problem, all in slightly different ways.

一般的概念是,您有「經理」會收到 預期的狀態The general idea is that you have "managers" who receive expected state. 此狀態可能是「我想要執行 web 應用程式的兩個實例,並公開端口80」。This state might be "I want to run two instances of my web app and expose port 80." 管理員接著會查看叢集中的所有電腦,並將工作委派給「背景工作」節點。The managers then look at all of the machines in the cluster and delegate work to "worker" nodes. 管理員會監看 (之類的變更,例如,容器會結束) ,然後努力讓 實際狀態 反映預期的狀態。The managers watch for changes (such as a container quitting) and then work to make actual state reflect the expected state.

雲端原生運算基礎專案Cloud Native Computing Foundation projects

CNCF 是不同開放原始碼專案的廠商中立家用,包括 Kubernetes、Prometheus、Envoy、Linkerd、NAT 等等!The CNCF is a vendor-neutral home for various open-source projects, including Kubernetes, Prometheus, Envoy, Linkerd, NATS, and more! 您可以在此查看已 分級和這是的專案 ,並在此查看整個 CNCF 環境You can view the graduated and incubated projects here and the entire CNCF Landscape here. 有許多專案可協助您解決有關監視、記錄、安全性、映射登錄、訊息和更多功能的問題!There are a LOT of projects to help solve problems around monitoring, logging, security, image registries, messaging, and more!

如果您不熟悉容器的環境和雲端原生應用程式開發,歡迎您!So, if you're new to the container landscape and cloud-native application development, welcome! 請連接到該社區、提出問題,並持續學習!Please connect to the community, ask questions, and keep learning! 很高興有您!We're excited to have you!

在 VS Code 中使用 DockerWorking with Docker in VS Code

深入瞭解如何使用 VS Code Docker 延伸模組:Learn more about using the VS Code Docker extension: