In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to deploy a test environment with Docker". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "how to deploy test environment with Docker"!
Core components:
docker client and server
Docker image: is the build and packaging phase, made up of file systems stacked together. is a series of read-only layers.
registry: Save user-built images
Docker container: startup or execution phase. It's a mirror reading and writing layer.
Data Volume-v: Enables data sharing and persistence between containers. The v on the container or the v on the host can be linked
Test environment setup process
the first day
1. Prepare machine, centos643, 3.10 kernel. 88G+ cp01-ee-swarm16.cp01.baidu.com root isys.INIT@2014
2. Install docker on the machine
3. Configure docerk private server et-dr.baidu.com machine p01-xiaolvyun-docker05.cp01.baidu.com root isys.INIT@2014
4.pull base image,[see tag at et-dr.baidu.com/v2/mysql/tags/list]
mysql: docker pull et-dr.baidu.com/macross/mysql:5.6
redis: docker pull et-dr.baidu.com/redis:3.0.2
mongo: docker pull et-dr.baidu.com/mongo:3.0.4
zookeeper: docker pull et-dr.baidu.com/zookeeper
activemq:docker pull et-dr.baidu.com/macross/activemq:5.8
gerrit:docker pull et-dr.baidu.com/gerrit:2.12.2
the next day
Prepare the configuration file of the basic image (mysql and activemq configuration files are in the icode library [baidu/hsiaoyan/icode-env], clone directly to the machine
The data volume directory is located at/home/work/workdir/
http://wiki.baidu.com/pages/viewpage.action? pageId=261825352
Start redis:docker run --name redis -p 8379:6379 --restart=always -v /home/work/workdir/redis/:/data -d --name redis af1425461c91 redis-server --appendonly yes
Verification redis: redis-cli -h cp01-ee-swarm16.cp01.baidu.com-p 8379 && info
At this point, I believe that everyone has a deeper understanding of "how to deploy a test environment with Docker". Let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.