当前位置:网站首页>Containerization Foundation
Containerization Foundation
2022-07-05 03:40:00 【pythonxxoo】
Python Wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python Actual quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475
- Use linux adopt java -jar Deploy the single architecture ,war Bag lost tomcat.
- Use Docker Deploy the microservice architecture .
The related documents :
Catalog * brief introduction
brief introduction
Cloud native :Java,C Applications developed by others are called native applications , Deploy to the cloud . The whole process of Cloud Application , And a series of solutions on the cloud .
There are three different ways to deploy cloud computing resources : Public cloud 、 Private cloud and hybrid cloud . The deployment method adopted depends on the business requirements .
Expand :VPC
Containerization foundation
Problem solved
- Application build
- Java、C++、JavaScript
- Package
- Java、C++、JavaScript
- .exe
- docker build … Mirror image
- .exe
- App sharing
- All software images are placed in a designated place docker hub
- Android , Application market
- All software images are placed in a designated place docker hub
- Application and operation
- Unified standard Mirror image
- docker run
- Unified standard Mirror image
- …
Resource isolation
- cpu、memory Resource isolation and limitation
- Access device isolation and restriction
- Network isolation and restriction
- user 、 User group isolation restrictions
- …
framework
- Docker_Host:
- install Docker The host
- Docker Daemon:
- Running on the Docker Host computer Docker Background processes
- Client:
- operation Docker The client of the host ( Command line 、UI etc. )
- Registry:
- Mirror warehouse
- Docker Hub
- Mirror warehouse
- Images:
- Mirror image , Packaged program with environment , You can start and run directly
- Containers:
- Containers , A running program started by the image
Interactive logic
packed Docker, Then go to Software market seek Mirror image , Download and run , see Containers Troubleshooting such as status log .
Actual battle plan
Go to Docker hub, Find the mirror image .
establish & Construct a Java application
Code address :https://gitee.com/zwtgit/dockerdemo
preparation
Incidental :Docker install Redis, Deploy video ,https://www.bilibili.com/video/BV13Q4y1C7hS?p=20
Go to Docker hub, Find the mirror image , There are detailed documents in it .
start-up ,https://hub.docker.com/_/redis
docker run --help
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
#redis Start with a custom profile
docker run -v /data/redis/redis.conf:/etc/redis/redis.conf \
-v /data/redis/data:/data \
-d --name myredis \
-p 6379:6379 \
redis:latest redis-server /etc/redis/redis.conf
Application packaging
To write Dockerfile Package and mirror your application .
before
Java For example
- SpringBoot Package into executable jar
- hold jar Upload the package to the service
- Server running java -jar
After packaging in the plug-in, you can see jar perhaps war Corresponding package and location , It can be used locally java -jar Command test .
Now?
All machines are equipped with Docker, Any application is a mirror , All machines can run .
I take a taxi here war package .
FROM openjdk:8-jdk-slim
LABEL maintainer=leifengyang
COPY target/*.war /app.war
ENTRYPOINT ["java","-jar","/app.war"]
docker structure , The last dot indicates that you are working in the current directory .
docker build -t java-demo:v1.0 .
Start the container
docker run -d -p 8080:8080 --name mydockerfiletest-app java-demo:v1.0
# Sign in docker hub
docker login
# Name the old image
docker tag java-demo:v1.0 leifengyang/java-demo:v1.0
# Pushed to the docker hub
docker push leifengyang/java-demo:v1.0
# Other machines
docker pull leifengyang/java-demo:v1.0
# Other machines run
docker run -d -p 8080:8080 --name myjava-app java-demo:v1.0
__EOF__
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-nuk12goz-1644790402977)(https://blog.csdn.net/zwtblog)]ML Ricardo - Link to this article :https://blog.csdn.net/zwtblog/p/15890760.html
- About bloggers : I am a good person
- Copyright notice : ML Ricardo
- Solidarity bloggers : If you think the article will help you , You can click the bottom right corner of the article **【[ recommend ](javascript:void(0)】** once .
边栏推荐
- 英语必备词汇3400
- Zero foundation uses paddlepaddle to build lenet-5 network
- Technology sharing swift defense programming
- [105] Baidu brain map - Online mind mapping tool
- Analysis of glibc strlen implementation mode
- ICSI213/IECE213 Data Structures
- Performance of calling delegates vs methods
- Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
- IPv6 experiment
- SQL injection exercise -- sqli Labs
猜你喜欢

1. Five layer network model
![[wp]bmzclub几道题的writeup](/img/15/2838b93a605b09d3e2996f6067775c.png)
[wp]bmzclub几道题的writeup

Blue Bridge Cup single chip microcomputer -- PWM pulse width modulation

Mongodb common commands

SQL performance optimization skills

Zero foundation uses paddlepaddle to build lenet-5 network
![[groovy] string (string injection function | asBoolean | execute | minus)](/img/ea/bf1e6aa713cf54e29653e35b164560.jpg)
[groovy] string (string injection function | asBoolean | execute | minus)
![Quick start of UI component development of phantom engine [umg/slate]](/img/8b/cee092ec1ab105a7e234143bd56861.jpg)
Quick start of UI component development of phantom engine [umg/slate]

Accuracy problem and solution of BigDecimal

Why are there fewer and fewer good products produced by big Internet companies such as Tencent and Alibaba?
随机推荐
Kubernetes - identity and authority authentication
Leetcode42. connect rainwater
Smart pointer shared_ PTR and weak_ Difference of PTR
[deep learning] deep learning reference materials
Zero foundation uses paddlepaddle to build lenet-5 network
speed or tempo in classical music
Clickhouse同步mysql(基于物化引擎)
Une question est de savoir si Flink SQL CDC peut définir le parallélisme. Si le parallélisme est supérieur à 1, il y aura un problème d'ordre?
Sqoop command
What is the most effective way to convert int to string- What is the most efficient way to convert an int to a String?
Difference between MotionEvent. getRawX and MotionEvent. getX
Three line by line explanations of the source code of anchor free series network yolox (a total of ten articles, which are guaranteed to be explained line by line. After reading it, you can change the
DECLARE_ WAIT_ QUEUE_ HEAD、wake_ up_ Interruptible macro analysis
[summary of two registration methods]
Why are there fewer and fewer good products produced by big Internet companies such as Tencent and Alibaba?
[luat-air105] 4.1 file system FS
Huawei MPLS experiment
[vérification sur le Web - divulgation du code source] obtenir la méthode du code source et utiliser des outils
Use of kubesphere configuration set (configmap)
About MySQL database connection exceptions



