Mac docker deploys jenkins and runs automated code on jenkins
1, docker deployment jenkins
docker run -d -p 7000:8080 --name py42jenkins -u root -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker jenkins/jenkins:alpine
The deployment success diagram is as follows: Command interpretation:
docker run: run container through image – Name: the name of the startup conta ...
Added by YoussefSiblini on Mon, 24 Jan 2022 13:41:41 +0200
K8s simple deployment
1, Environment preparation: MiniKube+Docker:
Recently, I began to try to learn and understand k8s, and the purpose of writing this article is to make a record, Learn through exploration. Welcome to visit and exchange.
1. Install Docker:
Continue the simple packaged deployment series with IDEA+Docker
2. Install the MiniKube:
Minikube is ...
Added by baitubai on Mon, 24 Jan 2022 12:15:10 +0200
Tencent cloud lightweight server builds an Internet accessible redis5 through Docker X cluster
Python wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python practical quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475 Summary record / Zhu Jiqian
Recently, I bought a 4-core 16 Tencent cloud lightweight application server, which cost me nearly 400 oceans. I plan to ...
Added by kexo on Mon, 24 Jan 2022 08:56:18 +0200
redis cluster summary and sentry explanation
redis cluster summary and sentry explanation
Why cluster
1. A single redis is unstable. When the redis service goes down, there are no available services.
2. The reading and writing ability of a single redis is limited
redis master-slave replication
There is only one Master node, and there can be multiple Slave nodes
As long as the ne ...
Added by billkom on Sun, 23 Jan 2022 21:52:22 +0200
Docker data management
When using Docker, users often need to be able to view the data generated in the container, or need to back up the data in the container, or even share data among multiple containers. Therefore, it is necessary to understand the data management operation of the container.
There are two main ways to manipulate data in a container:
Data Volume
D ...
Added by bam2550 on Sun, 23 Jan 2022 16:12:03 +0200
In the Docker environment, run Mysql and start Binlog to configure master-slave synchronization
The same server uses Docker to simulate the master-slave synchronization settings of Mysql settings.
1. Run two Mysql: Master Mysql (master library) and slave Mysql (slave Library), database version 5.7.
#Pull image
docker pull mysql:5.7
#y run master and slave containers
docker run -p 13306:3306 --name slavemysql -e MYSQL_ROOT_PASSWORD=12345 ...
Added by jackliu97 on Sun, 23 Jan 2022 10:15:51 +0200
Docker local private warehouse
DockerHub provides us with many official images and images uploaded by individuals, or we can download images provided by institutions or individuals or upload our own local images using a third-party image warehouse, but the disadvantages are:
Due to the network, downloading and uploading images from DockerHub may be slow;The Docker image ...
Added by Hitoshi on Sat, 22 Jan 2022 13:33:19 +0200
Build kubernetes cluster with kubedm
Build kubernetes cluster with kubedm
kubeadm
Kubedm is a K8s deployment tool that provides kubedm init and kebuadm join for rapid deployment of Kubernetes clusters. The deployment of a Kubernetes cluster can be completed through two instructions:
Create a Master node using kubedm initUse kubedm join < master Node IP and port > to j ...
Added by mikosiko on Sat, 22 Jan 2022 07:57:47 +0200
Dock -- dockerfile to build LNMP environment
Dockerfile builds nginx and combines php
1. Build base image First, build a basic image, add a repo environment and a compilation environment, and the centos image is the initial official image. Later, build php, nginx and mysql, and use the image as base image:
[root@server myCentos]# cat Dockerfile #View Dockerfile file
# base image
FRO ...
Added by installer69 on Thu, 20 Jan 2022 17:58:37 +0200
Basic commands of docker
Help command
docker version
Displays the version information of docker docker info
Show docker details docker command -- help
View the help documentation for the command
Mirror command
docker images
View all local mirrorsparameter
-a displays all mirrors-q display id only docker search
You can also go to the docker hub ...
Added by robpoe on Thu, 20 Jan 2022 17:31:24 +0200