Docker for Mac creating a Linux environment

Source: Internet
Author: User
Tags docker for mac docker run docker registry docker toolbox

To use Mininet and OvS, to get a lightweight Linux environment, install Docker on your Mac and experience the convenience of Docker.

1. Installation Environment requirements

System Requirements:docker for Mac would launch only if all of these Requirements is met.

  • MAC hardware must be a-or newer model, with Intel's hardware support for Memory management Unit (MMU) virtualization; i.e., Extended Page Tables (EPT) and unrestricted Mode. can check to see if your machine have this support by running the following command in a Terminal:sysctl Kern.hv_suppo Rt

  • MacOS El Capitan 10.11 and newer MacOS releases are supported. At a minimum, Docker for MAC requires MacOS Yosemite 10.10.3 or newer, with the caveat that going forward 10.10.x are a use -at-your-own risk proposition.

  • Starting with Docker for Mac Stable release 1.13, and concurrent Edge releases, we'll no longer address issues specific To MacOS Yosemite 10.10. In future releases, Docker for MAC could stop working on MacOS Yosemite 10.10 due to the deprecated status of this MacOS V Ersion. We recommend upgrading to the latest version of MacOS.

  • At least 4GB of RAM

  • VirtualBox prior to version 4.3.30 must isn't be installed (it's incompatible with Docker for MAC). If you have a newer version of VirtualBox installed, it ' s fine.

Note:if your system does not satisfy these requirements, you can install Docker Toolbox, which uses Oracle VirtualBox ins Tead of Hyperkit.

2. Download the installation package

https://docs.docker.com/docker-for-mac/install/, you can use a stable version, or use the latest version of the early adopters.

3. Installing Docker

All the way next, until you finally see the sign that Docker is already running. You can view the installed version information, and so on.

4. Download the image and run the container 4.1 because when downloading images using Docker, the default is to download from the Docker official store, so it is very slow, so we recommend using download acceleration, I use the daocloud Accelerator, the effect is good.

In Daocloud's official website http://www.daocloud.io/mirror# can register an account, get an accelerator address for free, and then set up Docker registry mirror just fine.

Add the expedited address of the application to registry mirror. Then click on Restart apply & restart docker.linux and the Windows platform Acceleration settings can also refer to Daocloud configuration instructions. Http://www.daocloud.io/mirror#accelerator-doc

4.2 Download Image

To get a Linux environment, download the image of Ubuntu 14.04.

Use docker pull ubuntu:14.04 to download the image:

  • Pull is the command to download the image;
  • Ubuntu is the name of the downloaded image, and the 14.04 after the colon is the version number.
  • If you use Ubuntu without the version number, the default is the latest edition.
4.3 Running the container
    • You can run the command directly: docker run -it ubuntu:14.04 bash A container is created automatically, running the following command---bash.

To view the status of the currently running Docker:

5 Docker basic Knowledge points

http://www.jianshu.com/p/0d7a89154211

Docker for Mac creating a Linux environment

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.