Cumulative learning Linux (ii): Docker's first acquaintance

Source: Internet
Author: User
Tags docker run

background:

There's been a lot of information about Docker coming out of the infoq that I've been focusing on lately, and I've inadvertently opened up a few things, and I think Docker is a fascinating technology, though I haven't fully understood what Docker is. Also did not search the very good study material, here only briefly records own smattering, prepares for a rainy-out.

Docker knows:

A random search on the web of Docker, a variety of newspapers to cover the ground, but all is the same, nothing is the origin of Docker, Docker advantages and so on. I think the blog http://www.aiweibang.com/yuedu/tech/268802.html for some of the introduction of Docker is more thorough, relatively concise. It is noted that Docker attempts to simplify the use of two existing technologies from a technical point of view:1) lxc,linux containers that allow standalone processes to run at a higher isolation level than normal UNIX processes. The technical terminology used is containerization, a container running a process;2) AUFS, a high-level, multi-tiered, unified file system that can be used to create federated, write-time, and copy file systems.

To tell the truth for the above two technologies I am very unfamiliar, although once self-taught the Linux kernel, but limited to time and endurance can not touch the reason. An intuitive understanding of Docker seems to be the desire to build a lightweight operating system that runs one or more applications per operating system, and that our own computers can switch freely between multiple lightweight operating systems at any time--perhaps This is like creating multiple virtual machines with VMware, each with a separate configuration, a specific application installed inside the virtual machine, and no interference between multiple VMs--maybe it's like multiple user accounts created in Windows Each user account can use the operating system independently, seemingly non-interfering with each other. So why is Docker still popular with VMware, a multi-user model, and so on? Surely the answer must be "the very low consumption of Docker and the above two modes in the same function." Specific technical aspects of the description I will not be involved, do not understand, interested can refer to the blog (http://www.aiweibang.com/yuedu/tech/268802.html).

Docker installation attempts:

Originally thought that Docker this ultra-lightweight virtual machine, should be able to adapt to a variety of systems (Unix, Linux, Windows), but the search for the relevant information to find out whether Docker is running under Windows or some difficulty, Although the official website has already given the description of Docker installation on Windows (http://docs.docker.com/installation/windows/), but the personal feeling is still ineffective, You need to install the VirtualBox virtual machine on Windows and then install Docker on that basis.

Because I already have a VMware virtual machine installed on my computer, I decided to use VMware instead of VirtualBox to try to install Docker on a Windows system.

1) Download Boot2docker.iso image (i.e. the second item in)

2) Reference http://www.widuu.com/archives/06/1049.html , download the boot2docker.iso image in VMware for new virtual machine, load 1)

3) boot up Docker to complete the installation of Docker under Windows successfully.

As shown in the following:

"Note": many online requests directly download boot2docker for the Windows XXX installation package, and then the blog is not very clear, in person after testing the VMware installation Boot2docker, I think it should be pointed out If the local computer does not have a virtual machine installed, consider downloading the boot2docker for Windows XXX installation package because a small virtualbox virtual machine software is included in the installation package. If you have installed the relevant virtual machine software, you can simply download the boot2docker.iso image separately and then load the image file with the existing virtual machine, which is convenient and quick.

Docker use:

After the installation is complete, found that Boot2docker occupies a small space, very excited ah, eager to try a few Docker instructions.

>docker run Ubuntu echo Hello World

Instructions run, suddenly heart cool half, need to download Ubuntu image to the local computer, but helpless Dockerhub server in foreign countries, download speed how a "card" word?

Next, in order to be able to make Docker attempt, search for half a day Docker mirror domestic server, blog post http://docker.widuu.com/, http://www.widuu.com/archives/07/1068. The HTML gives the link has been invalidated, after entering the prompt cannot find the link, originally thought that the virtual machine setup has a problem, and then directly in the browser to enter the link is not valid, so the first attempt to use the Docker process is no longer the case. Follow in slowly looking for a good service mirror server.

Feel:

1) Boot2docker is really a good thing, for me this rookie level of people, it is easy to simulate the use of Docker under Windows, it feels good;

2) Docker should hurry to provide China's domestic mirror service Ah, or I study Docker's interest is all the search for the image to be extinguished;

3) feel Docker technology is very ox X, do not know whether can be local to my original project to create a mirror it? Can I use Docker to manage the debugging environment for each of my local projects? Looking forward to ...

[Email protected]

Date: 2014-09-14

Cumulative learning Linux (ii): Docker's first acquaintance

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.