官术网_书友最值得收藏!

The Docker service and Docker command-line

Docker runs as a background Windows service. This service manages all the running containers and exposes a REST API for consumers to work with containers and other Docker resources. The main consumer of that API is the Docker command-line tool, which is what I use for most of the code samples in this book.

The Docker REST API is public, and there are alternative management tools that are powered by the API, like Portainer (which is open source) and Docker Universal Control Plane (UCP) (which is a commercial product). The Docker CLI is very simple to use; you use commands like docker container run to run an application in a container and docker container rm to remove a container.

You can also configure the Docker API to be remotely accessible and configure your Docker CLI to connect to a remote service. This means you can manage a Docker host running in the cloud using Docker commands on your laptop. The setup to allow remote access should also include encryption, so your connection is secure--and in this chapter, I will show you an easy way to configure that.

When you have Docker running, you'll start by running containers from images.

主站蜘蛛池模板: 德惠市| 宁陵县| 穆棱市| 宿松县| 信宜市| 柳江县| 北川| 交城县| 胶南市| 大英县| 云阳县| 永福县| 吴忠市| 麟游县| 东辽县| 句容市| 长沙县| 吉木乃县| 桐梓县| 晋城| 南漳县| 新邵县| 定兴县| 德安县| 阜阳市| 莲花县| 天峨县| 墨脱县| 内黄县| 宜城市| 临江市| 监利县| 扶风县| 县级市| 七台河市| 冕宁县| 和硕县| 安塞县| 京山县| 缙云县| 桑植县|