Use Docker to configure Paddlepaddle in the WINDOWS10 Pro environment
For paddlepaddle installation, check the official website information, Paddlepaddle provide PIP installation and how to use the Docker installation operation. We've learned about the huge advantages of Docker in avoiding environmental configuration challenges, plus the fact that I'm using the WINDOWS10 operating system, which is now officially supported by the WIN10 version, so I chose to install Paddlepaddle in Docker.
(1) Installing Docker
Before you install Docker, remember to open Hyper-V Manager in Windows (only WINDOWS10 Professional and Enterprise editions are available until the start of the blog).
At present, the official version of the WIN10 unique support, supported by the version of 64bit Windows Pro, Enterprise and education. The downloaded URL is: https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install
Please download the stable version:
It is important to note that if your machine does not support hyper-V then use the Docker Toolbox installation, which no longer tells about the installation of Docker Toolbox.
1.1 Installation
The installation process is simple:
1. Double-click the installation package: Docker for Windows Installer.exe,
2. The next step, fool installation can be. It is important to note that all licensing requirements are accepted. After the installation is successful, you will be asked to log out temporarily and then login to Windows again.
3. The system requires a reboot after logging in again. Restart the computer as required.
4. After restarting the computer, the installation is complete.
1.2 Testing
After the reboot, the installation is complete, then test whether the installation is successful. There are two ways to test, one is to test the graphical interface, and the other is to use a command line method.
The test process for the graphical interface is as follows
1. Open Docker. If successful, you can see the Docker icon in the lower-right corner of the icon as shown in:
2. Open the graphical interface to view the software status (about Docker), if you can see the software status, the installation is correct.
The command line test process is as follows:
1. Open Windows Powershell and open the dialog box as shown in
2. In the Command Line window, enter the command: Docker version. If the correct output version number is tested successfully.
(2) Installation Paddlepaddle
Because of the strong support of Baidu and very active community paddlepaddle development rapidly. This also led to the constant generation of new image files, while the current stable version is 0.10.0, which currently chooses to use a stable version. You can download and install the Paddlepaddle image by using the command line method.
There are two points to note: 1. Selection of warehouses; 2. The selection of the version (as shown in the following table). An overseas warehouse is a warehouse provided by the Docker website, which is equivalent to downloading from the official image source dockerhub.com. If no special emphasis version is available, the latest version is automatically downloaded.
|
Latest Version |
Stable version |
Overseas Warehouse |
Paddlepaddle/paddle |
paddlepaddle/paddle:0.10.1 |
Domestic Warehouse |
Docker.paddlepaddle.org/paddle |
docker.paddlepaddle.org/paddle:0.10.1 |
Readers are recommended to use a domestic image to download the stable version:
Command: Docker pull docker.paddlepaddle.org/paddle:0.10.0
1.1 Installing the Paddlepaddle_book:
In order to learn more intuitive and convenient, as far as possible to shield off the Linux environment and the interference caused by the command, the use of visual more intuitive jupyter way to do. So the first step is to download the Paddlepaddle/book image first:
Command: Docker pull paddlepaddle/book:0.10.0
After installation, check the installation results.
Command: Docker images
Since the image volume is 2G, please download it in a well-networked environment, otherwise it will be easy to download failure error.
1.2 running Paddlepaddle_book:
The previous download image contains the Jupyter server, so you need to set the port number of the network when you start the container. Only if the port number of the network is mapped successfully, the server can be correctly found and then the service will be obtained.
The command to start is: Docker run–p 7777:8888 image_id
Access page: Open the browser of the host (Windows system) and enter the URL in the browser:
Running a lightweight Linux operating system in the container of Docker, the Jupyter server is running on this system, and the server exposes a port number of 8888. When you use the command Docker run–p 7777:8888 image_id, you have mapped the 7777 port on Windows to port 8888 in container. As a result, 7777 of requests for windows are imported into 8888 ports in Linux, and the Web pages that users see actually come from Jupyter servers on Linux systems.
This completes the construction of the Paddlepaddle usage environment on Windows.
2018-01-29 in Beijing
Open source Deep learning platform Paddlepaddle the Way (ii)----use Docker to configure Paddlepaddle in the WINDOWS10 Pro environment