Cross host - how to realize the communication of docker container? (Docker-Swarm)

Before Docker (V): how should containers communicate? In, we talked about the network communication mode when running multiple containers, but those containers are running on the same physical machine In actual projects, we often need to deploy multiple sets of software. For example, components need to be deployed in clusters, or a project pro ...

Added by jrws on Thu, 13 Jan 2022 23:22:08 +0200

Docker container network mode and data management

1, Docker container operation 1. Container creation The process of loading a mirror into a container. The newly created container is stopped by default and does not run any program. A process needs to be initiated to start the container format∶docker create [option] Common options for mirroring∶ -i∶Keep the input of the container open ...

Added by guru2k9 on Thu, 13 Jan 2022 04:22:53 +0200

Give the front-end docker 10 minutes real · Quick Start Guide

It's 2022. We'll spend some time learning docker. We won't be fooledHaven't you learned about docker yet? It doesn't matter. Let's simulate a few scenarios and find out what it is and when we need it in two minutesThen we take the remaining seven or eight minutes and use docker to deploy vue2 and vue3 projects at the same time. Yes, that's so f ...

Added by phpdeveloper82 on Wed, 12 Jan 2022 06:06:07 +0200

First acquaintance with docker (the advantages are really huge, which is much easier to use than virtual machines)

Background: In terms of linux, the linux operating system will have a main process with pid=1 and derive other processes to control different services For example: PID = 2 -- > Python PID = 3 – > java pid4 – > PHP, the three services may affect each other Users expect to run these three different services in different ...

Added by Static_Nexus on Mon, 10 Jan 2022 13:55:29 +0200

Production and deployment of docker image of distributed transaction seat server

Seata is an open source distributed transaction solution, which is committed to providing high-performance and easy-to-use distributed transaction services. It provides users with several different transaction modes such as AT, TCC, SAGA and XA. There are three main roles in Seata. TM and RM are integrated with the business system as Seata's cl ...

Added by sb on Mon, 10 Jan 2022 02:23:54 +0200

Docker escape caused by unauthorized access of docker remote API

Docker escape caused by unauthorized access of docker remote API preface It's a lecture for the students in the community md. The server https://cloud.tencent.com/act/campus Of course, if you want to learn this, local is enough. You can install docker in linux virtual machine to reproduce it. Docker Docker is an open source application c ...

Added by shadowwebs on Sun, 09 Jan 2022 17:43:10 +0200

Rapid deployment of highly available Kubernetes(K8s) clusters

1, Preconditions 1.1 tool preparation 1.1.1 installation and deployment of automated operation and maintenance tools (Ansible) Ansible brief introduction ansible is a new automatic operation and maintenance tool. It is developed based on Python, integrates the advantages of many operation and maintenance tools (puppet, cfengine, chef ...

Added by alexszilagyi on Sun, 09 Jan 2022 15:44:45 +0200

Docker advanced level - Mysql master-slave replication

1. Mysql (master) 1, Create a new master server container instance 3307 docker run --restart=always -p 3307:3306 --name mysql-master \ -v /mydata/mysql-master/log:/var/log/mysql \ -v /mydata/mysql-master/data:/var/lib/mysql \ -v /mydata/mysql-master/conf:/etc/mysql \ -e MYSQL_ROOT_PASSWORD=root \ -d mysql:5.7 Command details --restart=always ...

Added by herando on Sun, 09 Jan 2022 10:24:15 +0200

Talk about the port problems of docker

Today, let's talk about docker ports in the system. Common ports include program port in container, container port, host port, EXPOSE port in Dockerfile, docker compose and port in docker run. It seems that there are many ports, but when connecting, the real ports are only program ports and host ports. Others are declarations of ports and will ...

Added by just me and php on Sat, 08 Jan 2022 10:58:45 +0200

How to parse container images in golang code

Introduction: container image plays an extremely important role in our daily development work. Usually, we package the application into the container image and upload it to the image warehouse, and then pull it down in the production environment. Then, when using containers such as docker/containerd, the image will be started and the applicatio ...

Added by DeathStar on Fri, 07 Jan 2022 13:05:28 +0200