03 - container use
Get image If there is no local image, we can use the unpull command:
$ docker pull ubuntu
Start container The following command uses ubuntu image to start a container. The parameter is to enter the container in command line mode:
$ docker run -it ubuntu /bin/bash
Parameter Description: -i: Interactive operation. -t: Terminal. ubuntu: ubun ...
Posted by AIS4U on Tue, 08 Feb 2022 09:07:37 +0100
Construction of monitoring and alarm platform based on prometheus+Grafana+Alertmanager
prometheus is used to collect data, Grafana is used as a mapping display, and Alertmanager outputs alarms
The monitoring alarm platform runs using docker compose
Refer to other documents to complete the installation of docker and docker compose
Basic environment
Docker, docker compose installation completedcentos7.9IP: 192.168.3.10The f ...
Posted by bcamp1973 on Mon, 07 Feb 2022 11:28:42 +0100
Construction of micro cluster system
Project start
In August 2021, the idle teacher found some old friends and joined the whole department in a new job. The work content is relatively easy. The idle teacher is the front-end identity in the team. In January 2022, one month before the new year, the idle teacher basically completed the work of the whole year and was relatively idle. ...
Posted by benzrf on Mon, 07 Feb 2022 03:59:33 +0100
[Yugong series] January 2022: Construction of Docker container Mysql master-slave replication
#Preface system environment:
Windows 11 Enterprise Editionmysql8.0+dockervm virtual machine
1, Construction of Mysql master-slave replication
1. Pull the image
docker pull mysql
2, Configuration of MYSQL main service
Because I already have local mysql in 3306, the mysql port in the container is set to 33306
docker run --name mys ...
Posted by XzorZ on Sun, 06 Feb 2022 22:24:27 +0100
docker learning document
1, docker installation (Linux)
1. docker official website
https://www.docker.com
Note: during the installation process, you need to log in root on linux, otherwise some commands will be blocked
2. Find the documentation for installing docker in CentOS
Click Developers Docs, as follows: Click Download And Install as follows:
Click do ...
Posted by petroz on Fri, 04 Feb 2022 12:06:48 +0100
Docker&Kubernetes ❀ detailed explanation of basic commands of docker image and container related operations
1. Docker information query
1.1 version information
[root@localhost ~]# docker version
Client: Docker Engine - Community #Client version information
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:17:04 2021
OS/Arch: linux/amd64 ...
Posted by Base on Fri, 04 Feb 2022 09:14:26 +0100
docker's nginx image optimization 4
Thin images have been selected, so reduce the number of layers of images and merge the previous runs together. Switch WORKDIR to cd under RUN Previous Dockerfile:
FROM rhel7
EXPOSE 80
VOLUME ["/usr/local/nginx/html"]
COPY dvd.repo /etc/yum.repos.d/dvd.repo
RUN rpmdb --rebuilddb
RUN yum install -y gcc pcre-devel zlib-devel
ADD nginx-1.18.0.tar ...
Posted by pradeepknv on Fri, 04 Feb 2022 06:17:55 +0100
It's hard for you to pretend, Kubernetes
A long time ago, it was said that a wave of Kubernetes clusters would be installed on the virtual machine, but it reported an error once before. Later, it has not been reinstalled. Taking advantage of the holiday and rest these days, another wave was reinstalled, which can be regarded as done. This article will share with you the precautions fo ...
Posted by new_to_php2004 on Thu, 03 Feb 2022 15:57:00 +0100
docker learning notes, the most complete in history
install
1. Before installing Docker engine community on the new host for the first time, you need to set up the Docker warehouse. After that, you can install and update Docker from the warehouse.
https://www.cnblogs.com/caoweixiong/p/12186736.html
yum -y install gcc
yum -y install gcc-c++
Set up warehouse
yum install -y yum-utils \
d ...
Posted by hbsnam on Wed, 02 Feb 2022 01:04:26 +0100
Docker Compose container orchestration
catalogue
Docker Compose overview
compose features
Multiple isolated environments on a single host
Preserve volume data when creating containers
Recreate only changed containers
Variables and moving combinations between environments
yml file format
Common fields of docker compose configuration
docker compose common commands
Docker ...
Posted by jskywalker on Wed, 02 Feb 2022 00:35:53 +0100