Before the company's test environment, just start to build their own virtual machine, and then install Redis,nginx,mq,mysql,tomcat,jdk,marven, and Jekins. The front is still good, jekins is still a bit troublesome. And then after the mirror out, switch to another platform, a different IP, do a test environment alone. Then every time you deploy, connect to the Linux server via SSH, kill-9, then back up, restart the server, Fight the war pack, really upset people. Later with the Jekins, the development environment release deployment on the random, testing. It feels very convenient.
Recently the company started using microservices, distributed, big data and so on. So using Docker to use microservices as a separate container, and then run it alone, and then also found, regardless of nginx,redis,mysql, or Hadop and so on. For Docker is a mode, download the Docker image, run a bit, OK. Really is pierced, learn a trick to taste all over the sky.
Because I am also just contact Docker (before the micro-service project should also use Docker, but no direct contact), the introduction is not in place for you forgive me.
Docker hub
1. First you need to apply for an account at the Docker hub so that many of the Docker images can be downloaded from the Docker hub, which is the equivalent of a central warehouse
Image.png
Docker Guide
Can see a CentOS Docker installation and Docker install MySQL
After Docker is installed, you can download the MySQL image from the Docker hub using Docker pull MySQL and then install it with Docker images |grep MySQL
Then run the container: Docker run-p 3306:3306--name mymysql-v pwd/logs:/logs-v $PW
This is when running Docker run with MySQL password, name, and logs log, etc.
2.docker was used. Put Docker on the corresponding array machine, how to solve the problem of the array machine and Docker network access, usually Docker mapped to its array machine, and then the array machine and the group of machines may be accessed through the LAN, and then Docker between the LAN access, Kubernetes Docker solves the obstacles to Docker clustering and network access everywhere. There's also a load balancer, and it really blew up.
How to obtain Kubernetes image in China
The difference between Docker and Kubernetes Docker