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

Technical requirements

For this chapter, you need to install Docker, version 18.09 or above. See the official documentation (https://docs.docker.com/install/) for how to do so for your platform.

If you install Docker in Linux, you may have to configure the server to run for non-root access. Check the documentation at https://docs.docker.com/install/linux/linux-postinstall/.

Check the version with the following command:

$ docker version
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:39 2019
OS/Arch: darwin/amd64
Experimental: false

You need to install Docker Compose version 1.24.0 or above as well. Note that, in some installations, such as macOS, this is automatically installed for you. Check the installation instructions in the Docker documentation (https://docs.docker.com/compose/install/):

$ docker-compose version
docker-compose version 1.24.0, build 0aa5906
docker-py version: 3.7.2
CPython version: 3.7.3
OpenSSL version: OpenSSL 1.0.2r 26 Feb 2019

The code is available on GitHub, in this directory: https://github.com/PacktPublishing/Hands-On-Docker-for-Microservices-with-Python/tree/master/Chapter03. There's a copy of ThoughtsBackend presented in Chapter 2, Creating a REST Service with Python, but the code is slightly different. We will look at the differences in this chapter.

主站蜘蛛池模板: 巩留县| 嘉鱼县| 阳曲县| 崇文区| 通州区| 屯昌县| 阳新县| 周宁县| 武川县| 麟游县| 渑池县| 调兵山市| 泽州县| 大荔县| 肇源县| 碌曲县| 临颍县| 眉山市| 清河县| 紫金县| 东乌| 科技| 广汉市| 玉龙| 修武县| 专栏| 湾仔区| 来安县| 洱源县| 庄浪县| 互助| 扶沟县| 云龙县| 深圳市| 万山特区| 城固县| 准格尔旗| 霞浦县| 绥化市| 阿巴嘎旗| 治多县|