How to make Windows 8/windows 10 users also use Docker

Source: Internet
Author: User
Tags wordpress blog docker ps docker hub docker run

Objective

All say Docker is the hottest hot spot, but I have no environmental test, how to do? That's OK, as long as you have Windows 8 or Windows 10! Also tell us how to use Docker to quickly build, launch WordPress blog!

Reference Documents

Http://blogs.msdn.com/b/scicoria/archive/2014/10/09/getting-docker-running-on-hyper-v-8-1-2012-r2.aspx


This article will share with you how to quickly build a boot2docker test environment in a Windows system and launch a Docker container that comes pre-loaded with WordPress blogs.


It is said that Docker is the grave digger of Hyper-V and VMware, of course, these virtualized veterans will not die, but only slowly wither ~ ~ After all, Docker is a process-level virtualization technology that shares the kernel, and Windows physical machines cannot open Linux docker flowers. So in this sense, the virtual machine is still needed.


If you've read the Docker book, you'll Never be a stranger to boot2docker. In fact, this is the Docker virtual machine environment, run under CoreOS, can be run in the Windows operating system.


Unfortunately, by default Boot2docker needs to install VirtualBox instead of support for HYPE-V, which is cumbersome and requires us to modify the BCD boot file because Hyper-V and VirtualBox are incompatible.


Now, someone from abroad has made it into a CD-ROM version that supports Hyper-V, which can be downloaded directly using the latest ISO file.

Https://github.com/boot2docker/boot2docker/releases


Ready-made images


If you want to be lazy, you can also directly to the following Baidu cloud site download China four pre-made virtual machine image, you can directly import Windows Hyper-V, so you can omit most of the configuration steps (Windows 8 You need to create a new virtual machine from the VHDX file):

Http://pan.baidu.com/s/1hq7sOU4


Detailed steps


1. First download the ISO file as described above.

2. Create a new virtual machine and select the first generation.

650) this.width=650; "title=" 1.jpg "src=" Http://s3.51cto.com/wyfs02/M02/5B/7C/wKiom1UKH6fjM4kbAAFx0VYV-nc308.jpg " alt= "Wkiom1ukh6fjm4kbaafx0vyv-nc308.jpg"/>

3. Ensure that the virtual network has access to the external network because the container image needs to be downloaded from the extranet Docker hub later.

650) this.width=650; "title=" 2.jpg "src=" Http://s3.51cto.com/wyfs02/M00/5B/76/wKioL1UKIODynalPAAEgsNoOjRE057.jpg " alt= "Wkiol1ukiodynalpaaegsnoojre057.jpg"/>

4. Do not create a new virtual hard disk.

650) this.width=650; "title=" 3.jpg "src=" Http://s3.51cto.com/wyfs02/M01/5B/76/wKioL1UKIPKAjXYJAAIB6K1dBxs196.jpg " alt= "Wkiol1ukipkajxyjaaib6k1dbxs196.jpg"/>

5. Then start the virtual machine, run ifconfig to view the IP address, this example is 192.168.0.113.

650) this.width=650; "title=" 5.jpg "src=" Http://s3.51cto.com/wyfs02/M02/5B/76/wKioL1UKIR3SeVRFAAL-irZGzo0135.jpg " alt= "Wkiol1ukir3sevrfaal-irzgzo0135.jpg"/>

6. Next shut down the virtual machine, create a new virtual hard disk in the virtual machine, and use FDISK to partition and format it. Then create the differencing disk, in order to create a differencing disk, this is for convenience, in the future can be placed in a separate differencing disk, easy to test debugging in the future.

7. For convenience, we can connect to the Boot2docker virtual machine via SSH tools such as putty and view the version information with Docker version.

Note User name and password: docker/tcuser

650) this.width=650; "title=" 6.jpg "src=" Http://s3.51cto.com/wyfs02/M02/5B/7C/wKiom1UKIAGRu7YbAAJbITHIOA4060.jpg " alt= "Wkiom1ukiagru7ybaajbithioa4060.jpg"/>

8. Run the following command to build the WordPress blog container:

Docker build-rm-t hualaisi/wordpress git://github.com/jbfink/docker-wordpress.git

Where Hualaisi can be replaced by any name.

Depending on the speed of the network, wait for a period of time, such as WordPress download build completed.

9. Run the following command to start the WordPress container and set the NAT port for the container to 80:

Docker run--name wordpress-d-P 80:80 hualaisi/wordpress

650) this.width=650; "title=" 7.jpg "src=" Http://s3.51cto.com/wyfs02/M00/5B/76/wKioL1UKITiRmOKtAAFQ1KlLXE8083.jpg " alt= "Wkiol1ukitirmoktaafq1kllxe8083.jpg"/>

10. You can run the following command to view the Docker containers that are running in your current environment:

Docker Ps-a

650) this.width=650; "title=" 8.jpg "src=" Http://s3.51cto.com/wyfs02/M00/5B/7C/wKiom1UKICGicfZTAAC-XLaFAJI603.jpg " alt= "Wkiom1ukicgicfztaac-xlafaji603.jpg"/>

Finally, we can open the Web browser directly in Windows, enter the following address (note the IP address and port number), can configure and access our built in the Docker container wordpress blog!

http://192.168.0.113

650) this.width=650; "title=" 9.jpg "style=" height:430px;width:662px; "border=" 0 "hspace=" 0 "src=" http://s3.51cto.com /wyfs02/m01/5b/76/wkiol1ukivmy7_hjaaoguvl0lkq781.jpg "width=" 662 "height=" 430 "alt=" wKioL1UKIVmy7_ Hjaaoguvl0lkq781.jpg "/>


Note: WordPress Docker Address:

Https://github.com/jbfink/docker-wordpress

China Four is a public number created by the MVP of Peng, Huang, Cheng and Qi Qinghua, and shares the latest Microsoft client, data center and cloud technologies. WelcomeScan the following two-dimensional code attention or directly in the spotlight:sysinternal

650) this.width=650; "Title=" Wah four-small. png "src=" http://s3.51cto.com/wyfs02/M01/5B/7C/ Wkiom1ukifmcwrgqaaboxnkwhig513.jpg "alt=" Wkiom1ukifmcwrgqaaboxnkwhig513.jpg "/>

This article is from the "MVP Basin" blog, please be sure to keep this source http://markwin.blog.51cto.com/148406/1622072

How to make Windows 8/windows 10 users also use Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.