- Docker for Developers
- Richard Bullington McGuire Andrew K. Dennis Michael Schwartz
- 308字
- 2021-06-11 18:15:22
Chapter 3: Sharing Containers Using Docker Hub
In the previous chapter, we learned how to build a container and run it on our workstation using Docker. We used a Debian image as our starting point, but where did that image come from? The answer is that it came from Docker Hub. Docker Hub is the official container image library for Docker, run by the same folk who brought us Docker itself.
The container library contains the official images for numerous programs, servers, services, and so on that you might install within your own containers. For example, there are official images for various Linux distributions, versions of Node.js, versions of MySQL and MongoDB, and so on.
You can think of Docker Hub as being like GitHub. You can explore existing organizations and pre-made containers, as well as upload your own containers and create your own organizations.
We will demonstrate how to use the Docker Hub website to search and get information for third-party containers that you can use in your applications. We will also demonstrate how to use third-party containers from Docker Hub using the command line. We will use the official MongoDB container from Docker Hub, which is published by MongoDB, Inc.
Entire backend applications can be implemented as a combination of multiple Docker containers working together. This application structure allows each of our custom container implementations to be simple and minimal. We'll apply microservices architecture to build a simple application. This demonstrates how containers can work together to create a complete working application. Lastly, we'll see how you can share your ready-for-production containers with third parties and your development team using Docker Hub.
In this chapter, we will cover the following topics:
- Introducing Docker Hub
- Implementing a MongoDB container for our application
- Introducing the microservices architecture
- Implementing a sample microservices application
- Sharing your containers on Docker Hub
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Linux內(nèi)核完全注釋(20周年版·第2版)
- 混沌工程:復(fù)雜系統(tǒng)韌性實現(xiàn)之道
- 混沌工程實戰(zhàn):手把手教你實現(xiàn)系統(tǒng)穩(wěn)定性
- Python基礎(chǔ)教程(第3版)
- 深入理解eBPF與可觀測性
- 直播系統(tǒng)開發(fā):基于Nginx與Nginx-rtmp-module
- 完美應(yīng)用RHEL 8
- Fedora 12 Linux應(yīng)用基礎(chǔ)
- VMware Horizon View Essentials
- 寫給架構(gòu)師的Linux實踐:設(shè)計并實現(xiàn)基于Linux的IT解決方案
- Windows 7使用詳解(修訂版)
- Windows Vista終極技巧金典
- 鴻蒙HarmonyOS手機應(yīng)用開發(fā)實戰(zhàn)
- Linux內(nèi)核API完全參考手冊(第2版)