Y. Chainsan
a language, a world.
×

Record my voice

Sign In
Email:
Password:
Captcha:
Archive
0
In the scenario of using docker to implement microservice architecture projects, each microservice needs to be deployed separately, which may increase the complexity and time of overall project deployment dramatically. The following contents is a solution to this issue based on real project in the company I'm working at. From installation of docker to testing and verifying of the project, this deployment practice of 9-steps makes a minimun system ready for use. STEP 1- Install docker, set storage path, set project network ### Install Docker  # 1. update yum packages  sudo yum update  # 2. install dependencies, yum-util has yum-config-manager ability, the other two for devicemapper  sudo yum install -y yum-utils device-mapper-persistent-data lvm2  # 3. set yum repo  sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo  # 4. check all docker versions in the repo, and choose proper version  yum list docker-ce --showduplicates | sort -r  # 5. install docker  sudo yum install docker-ce-18.06.3.ce  # 6. start and make auto start by booting  sudo systemctl start docker  sudo systemctl enable docker  # 7. verify installation (with both client and server section means docker has been installed successfully)  docker -v  sudo docker version     Client:      Version:           18.06.3-ce      API version:       1.38      Go version:        go1.10.3      Git commit:        d7080c1      Built:             Wed Feb 20 02:26:51 2019
2019-06-13 0 73