Container: docker -- use dockerfile to build images and docker compose to manage images

1, Building images using Dockerfile Dockerfile is a script composed of a series of commands and parameters. These commands are applied to the basic image and finally create a new image. For developers: it can provide a completely consistent development environment for the development team;For testers: you can directly take the image built ...

Added by rachel2004 on Fri, 28 Jan 2022 13:56:50 +0200

[K8S series] 7-K8s actual combat - play Network

Network Access between Docker containers The same network segment can communicate through docker0 network card 6.1 container communication in the same Pod - pause container Next, let's talk about the content related to Kubernetes network communication We all know that the smallest operation unit of K8S is Pod. First, think about ...

Added by tony_c on Fri, 28 Jan 2022 09:45:48 +0200

Docker can easily build Nexus private warehouse and realize Maven private server

1, Foreword It is believed that domestic small partners have experienced too slow pull-down speed of Gradle, Maven and NPM. Our general approach is to configure Alibaba cloud Central warehouse . The acceleration problem can be solved in this way, but if the library within the team wants to upload and distribute, it is not appropriate to trans ...

Added by jrough on Thu, 27 Jan 2022 22:39:49 +0200

Container data volume based on Docker

Container data volume What is a container data volume Review of docker concept Package the application and environment into one image data If the data is in the container, we will delete the container and lose the data! Requirement: data can be persistent Mysql, delete the container, delete the database and run! Requirement: MySQL data ...

Added by pinxxx on Thu, 27 Jan 2022 10:17:01 +0200

Docker common commands

Image command 1. List all local images docker images docker image ls 2. Label the local image docker tag [image_name]:[tag] [new_image_name]:[new_tag] 3. View image details docker inspect [image_name]:[tag] 4. View the image history # Display the specific content of each layer docker history [image_name]:[tag] 5. Search image # ...

Added by cafrow on Thu, 27 Jan 2022 01:38:19 +0200

Docker--Docker k8s--Kubernetes storage -- kubernetes scheduling

catalogue 1. Introduction 2. Factors affecting kubernetes scheduling 2.1 nodeName 2.2 nodeSelector 2.3 affinity and anti affinity 2.3.1 node affinity 2.3.2 pod affinity 2.4 taints 2.5 instructions affecting pod scheduling 2.5.1 cordon 2.5.2 drain 2.5.3 delete 1. Introduction The scheduler uses kubernetes' watch mechanism to d ...

Added by Scooby Doo on Wed, 26 Jan 2022 16:32:28 +0200

Chapter 3 Docker and programming language

Docker lifecycle and DockerfileDocker lifecycleDuring the operation of the container, no matter what operation is carried out, once the container exits or restarts, the data in it will be cleared, which is the life cycle of the container.Dockerfile and command linedirectory structuretke-lesson3 ├── Dockerfile ├── sources.list sources.list file ...

Added by itisprasad on Wed, 26 Jan 2022 09:19:58 +0200

Installing kuberneters using kubeadm

k8s installation Kubedm / kubectl / kubelet installation 1. Update apt package index and install packages required to use Kubernetes apt repository sudo apt-get update sudo apt-get install -y apt-transport-https ca-certificates curl 2. Download Google Cloud public signature key: sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyri ...

Added by greenie2600 on Tue, 25 Jan 2022 23:51:23 +0200

Hyperledger Fabric 2.x environment construction

1, Explain The core of the blockchain network is the distributed ledger, which records all transaction information in the network. Hyperledger Fabric is an open source, enterprise level, authorized distributed ledger solution platform. Hyperledger Fabric is supported by modular architecture and has excellent confidentiality, scalability, fl ...

Added by TraceyK on Tue, 25 Jan 2022 06:14:53 +0200

Tencent cloud lightweight server builds an Internet accessible redis5 through Docker X cluster

Record / Zhu JiqianRecently, I bought a 4-core 16 Tencent cloud lightweight application server, which cost me nearly 400 oceans. I plan to build a pile of docker component clusters. First, I plan to build a redis cluster through docker. I plan to use three ports, 700170027003.Tencent ECS has firewall restrictions, so these six ports need to be ...

Added by StirCrazy on Mon, 24 Jan 2022 17:40:51 +0200