In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of Docker to quickly build a variety of testing environment cases, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
Today's topic is how to quickly build a variety of test environments through Docker, which is listed in this article, which is often used by the author in his work, including MySQL, Redis, Elasticsearch, and MongoDB installation steps, which can be easily done in a few seconds with a few lines of command.
Tip: before building, you need to install Docker, this article is based on the Docker you have installed! If you want to communicate with more Docker technical experts, you can add me Wechat liyingjiese and remark "add group". The group has weekly best practices from major companies around the world and the latest developments in the industry.
Cut the crap and start the text!
1. Image acceleration
By default, Docker downloads images from the official image address Docker Hub. Because the server is abroad, the download speed is often very slow. In order to improve the download speed of the image, we can manually configure the domestic image accelerator to make the download speed go fast.
There are many options for domestic mirror accelerators, such as Aliyun, DaoCloud and so on.
This article mainly talks about how to configure Aliyun's mirror accelerator.
2.1 Log in to Ali Cloud to get acceleration information
First of all, you need to sign up for an Aliyun account. If not, jump to register via the following link: dev.aliyun.com/
Jump to image acceleration page cr.console.aliyun.com/, to get acceleration configuration information:
Aliyun Docker Image acceleration Page
2.2 configure Docker
2.2.1 determine the Docker Client version
Before configuration, you need to determine the version of Docker Client. The recommended version is 1.10.0:
Determine the Docker Client version
2.2.2 configure Mirror Accelerator
PS: take the CentOS system as an example. If you are another system, you can refer to the official documentation of Ariyun's configuration accelerator.
Use the accelerator by modifying the daemon configuration file / etc/docker/daemon.json:
Execute the following command:
Sudo mkdir-p / etc/docker sudo tee / etc/docker/daemon.json
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.