Common template commands of docker-compose.yml file
Note: when writing docker-compose.yml file, a space should be added after all colons (:) and dashes (-).
1,command
Overrides the default command executed after the container is started
command: echo "hello"
2,container_name
Specifies the container name. The project name will be used by default_ Service name_ Format such as serial number
c ...
Added by paran0id Dan on Tue, 16 Nov 2021 10:25:31 +0200
Running microservices on Docker
Running microservices on Docker
Using Dockerfile to build Docker image
Dockerfile builds Docker images. Dockerfile is a text file that contains several instructions that describe the details of building an image. 1) Prepare a file named Dockerfile:
FORM nginx
RUN echo '<h1>test</h1>' > /usr/share/nginx/html/index.html
FORM a ...
Added by cheikhbouchihda on Thu, 11 Nov 2021 06:53:19 +0200
Docker learning track I (docker introduction and installation)
Docker introduction
What is Docker?
When people say "Docker", they usually refer to Docker Engine, which is a client server application, which is controlled by Docker A daemon, a REST API that specifies the interface to interact with the daemon, and a command line interface (CLI) to communicate with the daemon (by encapsulating ...
Added by BostonMark on Thu, 11 Nov 2021 04:49:20 +0200
Kubernetes Pod horizontal automatic expansion and contraction
Horizontal Pod Autoscaler (HPA) can automatically scale the number of pods in ReplicationController, Deployment, ReplicaSet and StatefulSet based on CPU utilization. In addition to CPU utilization, automatic scaling can also be performed based on custom metrics provided by other applications. Pod auto scaling is not applicable to objects that c ...
Added by IcedEarth on Thu, 04 Nov 2021 21:36:54 +0200
Docker from introduction to mastery (illustration + second understanding + the most complete in History)
The article is very long. It is recommended to collect it and read it slowly! Crazy maker circle general catalog language bird version | General directory code cloud version| General directory blog Garden Edition We offer you valuable learning resources:
Free classic books: Java high concurrency core programming (Volume 1) Necessary for inte ...
Added by phpology on Thu, 04 Nov 2021 03:13:19 +0200
C + + improve the stack, queue and list containers in Chapter 5
stack container
concept
Stack (stack) is a first in and last out data structureOnly the top elements in the stack can be used by the outside world, so the stack is not allowed to traverse
Common interface
1. Constructor
stack<T> st; // Stack is implemented by template class, with default constructorstack<T> st1(const stack ...
Added by potato on Tue, 02 Nov 2021 19:16:15 +0200
In depth discussion on the principle of concurrent container of concurrent programming: blocking queue, write time replication container and lock segmentation container
introduction
I believe everyone has been exposed to containers when learning JavaSE. Generally, containers in Java can be divided into four categories: Map, List, Queue and Set containers. In the process of use, such containers as ArrayList and HashMap are often used, but the problem is that these containers will have thread safety problems in ...
Added by ayed on Wed, 27 Oct 2021 01:06:52 +0300
k8s disk mounted to container volume
1, Data volume type
1 emptyDir
emptyDir: simple empty directory
Data is not stored permanently, but can only be stored temporarily. It is often used to exchange and share data between multiple Docker containers in a pod Create a pod containing two containers that share the same volume
cat <<EOF > fortune-pod.yml
apiVersion: v1
kin ...
Added by milind24 on Mon, 25 Oct 2021 12:41:12 +0300
Docker installation and use
Docker
Install Docker
Uninstall old version
sudo apt-get remove docker docker-engine docker.io containerd runc
Installing using a repository
Before installing Docker engine community on the new host for the first time, you need to set up the Docker repository. After that, you can install and update Docker from the repository.
Set up repo ...
Added by dgudema on Mon, 25 Oct 2021 05:30:39 +0300
[kubernetes] build Promethus+grafana monitoring platform
1, Introduction
1. Prometheus (Chinese Name: Prometheus)
It is an open source monitoring and alarm system and time series database (TSDB) developed by SoundCloud. Prometheus is developed in Go language and is an open source version of Google BorgMon monitoring system.
The basic principle of Prometheus is to periodically capture the status of ...
Added by jchemie on Mon, 25 Oct 2021 03:20:03 +0300