In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build a caffe environment based on docker, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
Requirements: build a separate container with all the dependencies of caffe installed and run it directly when you need to run the code.
Pros: it can solve all kinds of dependency problems, such as this software needs to install gcc 4.7, while another needs to install gcc 4.8 and other mutually exclusive environment requirements.
Docker installation
For the installation and basic use of docker, you can refer to my two blogs above: installation and usage.
Build an image
There are two ways to build an image:
1. Write Dockerfile, the advantage is that it is easy to share
2, commit from the container, the advantage is simple and convenient, but not convenient to share.
Because a large number of dependency packages are required to install the caffe environment, and due to network reasons, these dependency packages often cannot be installed at once. For convenience, start a basic container directly here, and then install the dependency package from it.
Choose the basic ubuntu:14.04 here to start building the environment.
1. Start the container:
Sudo docker run-dns 8.8.8.8-dns 8.8.4.4-name ubuntu_caffe-I-t ubuntu:14.04 / bin/bash
The dns needs to be changed because without it, the container will not be able to go online.
2, dependent package installation
After entering the container, all the operations are the same as normal.
First install some basic tools:
Docker inspect-f'{{.ID}} 'ubuntu_caffe # ubuntu_caffe is the name of the container
These are all the contents of the article "how to build a caffe Environment based on docker". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Original link: https://blog.csdn.net/chenriwei2/article/details/50250685
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.