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

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.

主站蜘蛛池模板: 普安县| 香河县| 兰坪| 句容市| 辛集市| 弥勒县| 鸡泽县| 阿拉善左旗| 荔浦县| 安阳市| 合作市| 南昌县| 东乡族自治县| 九龙坡区| 西乌珠穆沁旗| 绵竹市| 西和县| 离岛区| 成安县| 和龙市| 莱西市| 监利县| 阳高县| 太仆寺旗| 萝北县| 偏关县| 综艺| 锦州市| 云林县| 梁河县| 洛隆县| 梅州市| 万年县| 壶关县| 潼关县| 清镇市| 菏泽市| 辰溪县| 盐山县| 合水县| 岳阳市|