In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to accelerate docker images and mount data to virtual machines". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
I. Image acceleration settings
1. Docker's default image repository is too slow to download. Here we use Aliyun's image accelerator.
2. First register the Aliyun account and log in
3. Then go to the container image service page
4. Click "Mirror Accelerator" to get the accelerator address.
5. Execute the following command:
Create a Linux virtual machine with a Docker environment installed, specify the machine name as default, and configure the Docker accelerator address.
# remove the default virtual machine docker-machine rm-y default#, then create the default virtual machine, and specify the image address docker-machine create-- engine-registry-mirror= https://koq0g34v.mirror.aliyuncs.com-d virtualbox default# to view the environment configuration of the machine, configure it locally, and access the Docker service through the Docker client. Docker-machine env default# then run eval "$(docker-machine env default)" # finally: check whether the bottom image acceleration address has been changed to your desired docker info# and then restart default (optional) docker-machine restart default 2. Mount data to the virtual machine:
1. First set to the shared folder of the virtual machine used by docker in VirtualBox
Fill in the path and name of the shared folder. For example: shared folder path: d:\ shared folder name: d
Then check automatic mount and fixed allocation.
two。 There is / d after restart, and then you can see the directory / d in the virtual machine. The files in the directory are the files in the windows system D:\, which are hung in the files into the docker virtual machine:
# restart docker-machine restart default # download the image docker pull / blast-plus# to run the image, and use the-v parameter: set the / d/blast in windows to the / work directory in the virtual machine, and pay attention to the use of ":" separating docker run-it-v / d/blast:/work-- rm / blast-plus:latest "method of accelerating and mounting data from docker image to the virtual machine". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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: 296
*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.