当前位置:网站首页>Application packaging or test team?
Application packaging or test team?
2022-04-22 03:06:00 【hogwarts_ beibei】
Docker Is an open source application container engine , be based on Go Language development ,Docker Allows developers to package their applications and dependencies into a lightweight package 、 In a portable container , Then publish to any popular system .
Docker Is the world's leading software container platform ,Docker The official slogan is ” Debug your application , Instead of debugging the environment “. When conducting multi person collaborative development , Developers can use Docker To eliminate the so-called “ I run well here ”(works on my machine) problem , Operation and maintenance personnel use Docker To run and manage applications in parallel to obtain better computing density , Based on separate containers , The application will not run incorrectly due to environmental reasons .
As shown in the figure below : At work , If we face so many services 、 Multiple servers , And a variety of environments , How should we deal with it ? If you continue to package and deploy in the traditional way , How much time will we waste ?
So in Docker Before Hengkong was born , Most of the R & D teams have been in pain , stay Docker When it appears , It makes more efficient use of system resources 、 Faster startup time 、 Consistent operating environment 、 Continuous delivery and deployment 、 Easier migration 、 Easier maintenance and expansion ,6 The big advantage quickly caught fire .
Docker Three concepts of :
- Mirror image (Image): Is an object with file system Docker Read only template for the engine . Any application needs an environment to run , And the image is used to provide this kind of running environment . For example, one Ubuntu A mirror image is one that contains Ubuntu Templates for the operating system environment .
- Containers (Container): It's like a lightweight sandbox , Think of it as a minimalist Linux System environment ( Include root jurisdiction 、 Process space 、 User space and cyberspace, etc ), And the applications running in it .Docker The engine uses containers to run 、 Isolate applications . Container is an application instance created by image , You can create 、 start-up 、 stop it 、 Delete container , The containers are isolated from each other , They don't influence each other . Be careful : The image itself is read-only , When the container starts from the mirror ,Docker Create a writable layer on top of the image , The image itself remains the same .
- Warehouse (Repository): Mirror warehouse , yes Docker It is used to store image files in a centralized way .
Docker It's an open source commercial product , There are two versions : Community Edition (Community Edition, Abbreviation for CE) And enterprise (Enterprise Edition, Abbreviation for EE). The enterprise edition includes some charging services , Not usually used . We will demonstrate Docker CE How to use this version .
Docker Support many operating system platforms , There are commonly used Microsoft Windows Serial operating system (Docker I won't support it Windows 10 Home edition system ),Linux Distribution and macOS System .
Windows There are two types of installation on the Docker The way :
• The first one is : visit Docker Web site to download Docker Desktop The software exe file , Download address :
https://download.docker.com/win/stable/Docker%20Desktop%20Installer.exe
• The second kind : Use Chocolatey Package management tool installation Docker.( The package management tool needs to be downloaded and installed by yourself )
choco install docker-for-windows
- Switch to administrator rights
su root
- Install some of the necessary system tools
apt-get update
apt-get -y install apt-transport-https ca-certificates curl
software-properties-common
3. install GPG certificate
curl -fsSL
http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg
| sudo apt-key add -
4. Write the software source information
add-apt-repository "deb [arch=amd64]
http://mirrors.aliyun.com/docker-ce/linux/ubuntu
$(lsb_release -cs) stable"
5. Update and install Docker-CE
apt-get -y update
apt-get -y install docker-ce
1. Switch to administrator rights
su root
2. Install some of the necessary system tools
yum install -y yum-utils device-mapper-persistent-data lvm2
3. Add software source information
yum-config-manager --add-repo \
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
4. Update and install Docker-CE
yum makecache fast
yum -y install docker-ce
• The first one is : visit Docker Web site to download Docker Desktop Of dmg Installation package , Download address :https://download.docker.com/mac/stable/Docker.dmg
• The second kind : Use package management tools to install Docker, Use Homebrew Tool installation Docker.( The package management tool needs to be downloaded and installed by yourself )
brew cask install docker
- start-up Docker
systemctl start docker
- Restart Docker
systemctl restart docker
- It starts automatically when the machine is turned on Docker
systemctl enable docker
- see Docker Running state
systemctl status docker
版权声明
本文为[hogwarts_ beibei]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211352557244.html
边栏推荐
- JS table sorting
- Saas.扩展字段 自定义字段
- 7、Request_Response
- 嘉戎技术深交所上市破发:公司市值41亿 应收账款2.8亿
- Analysis on the development status of meta universe
- [NCTF2019]Fake XML cookbook
- [7:00 pm tonight] discussion on the development and application scenarios of metartc
- 外包干了四年,废了
- IIS prompt: the solution of "this website requires you to log in".
- twenty-eight. Built in module
猜你喜欢

7、Request_Response

Apple watch theme picture crawl!

On the attention economy of NFT

kerberos認證協議

ONEFLOW's global tensor study notes and internship summary

(Advanced) C function call

China Database ranking in April 2022: the spring breeze blows the face, the spring is warm, and the score rises in April

使用 DBT-3 对 OceanBase 和 MariaDB 进行性能测试对比

Quick start NFT from technical principle, mainstream platform and market prospect

嘉戎技術深交所上市破發:公司市值41億 應收賬款2.8億
随机推荐
Use ordinary modem to make dial-up response. It was originally written in millionaire and summarized
Word input formula shortcut key
Verse protocol: a wonderful idea to optimize NFT liquidity
Dynatrace grabs the parameter value of any method in the system
[NCTF2019]Fake XML cookbook
谁有CDMA手机的AT指令集啊?连电脑遇到的奇怪问题。[email protected]
Super practical chrome plug-in
使用Xamarin编写一个精美的APP登录注册界面
Buy a Tencent cloud server to play
Flutter03-Dart异步
go语言实战-----30-----token机制微信公众号签名验证的方法、XML解析,CDATA解析、交换协议、接收消息协议、被动回复消息协议、正则表达式
微信JSAPI支付方式与错误(当前页面的URL未注册,支付验证签名失败)
Programmers want to take root in Shenzhen. In addition to Tencent, they can also consider these companies
72. 编辑距离
Niu Ke's entry record of C language
Code refactoring removes the assignment of parameters
Problem brushing plan -- dynamic programming (I)
Sword finger offer special breakthrough version 93, longest Fibonacci series
824. Goat Latin (string segmentation + string substitution)
500错误,提交响应后无法转发