- Docker on Windows
- Elton Stoneman
- 271字
- 2021-07-02 12:47:52
Docker containers
A container is an instance of an application created from an image. The image contains the whole application stack, and it also specifies the process to start the application, so Docker knows what to do when you run a container. You can run multiple containers from the same image, and you can run containers in different ways. (I'll describe them all in the next chapter.)
You start your application with docker container run, specifying the name of the image and your configuration options. Distribution is built into the Docker platform, so if you don't have a copy of the image on the host where you're trying to run the container, Docker will pull the image first. Then it starts the specified process, and your app is running in a container.
Containers don't need a fixed allocation of CPU or memory, and the processes for your application can use as much of the host's compute power as they need. You can run dozens of containers on modest hardware, and unless the applications all try to use a lot of CPU at the same time, they will happily run concurrently. You can also start containers with resource limits to restrict how much CPU and memory they have access to.
Docker provides the container runtime, as well as image packaging and distribution. In a small environment and in development, you will manage individual containers on a single Docker host, which could be your laptop or a test server. When you move to production, you'll need high availability and the option to scale, and that comes with an orchestrator like Docker Swarm.
- Linux設(shè)備驅(qū)動(dòng)開(kāi)發(fā)詳解:基于最新的Linux4.0內(nèi)核
- Mobile-first Bootstrap
- Google系統(tǒng)架構(gòu)解密:構(gòu)建安全可靠的系統(tǒng)
- PLC控制系統(tǒng)應(yīng)用與維護(hù)
- Windows Vista融會(huì)貫通
- 蘋(píng)果OS X Mavericks 10.9應(yīng)用大全
- Kali Linux 2018:Windows Penetration Testing
- Delphi Programming Projects
- 深入淺出Node.js
- Django Project Blueprints
- Cassandra 3.x High Availability(Second Edition)
- iOS 10 開(kāi)發(fā)指南
- Learn SwiftUI
- Linux內(nèi)核API完全參考手冊(cè)(第2版)
- Raspberry Pi入門(mén)指南