Boot2docker Network mapping under Mac system

Source: Internet
Author: User
Tags docker ps docker run

# # Download Boot2docker execute the following command to configure Boot2docker to use a high-speed download image, currently in version 1.8.0 "$ mkdir ~/.boot2docker $ echo isourl = \" Https://get.dao Cloud.io/boot2docker/boot2docker-lastest.iso\ "> ~/.boot2docker/profile" can also [download the installation package] (https:// DN-DAO-GITHUB-MIRROR.QBOX.ME/BOOT2DOCKER/OSX-INSTALLER/RELEASES/DOWNLOAD/V1.8.0/BOOT2DOCKER-1.8.0.PKG) # # Run Boot2docker after the installation is complete, run the Boot2docker in the application. The virtual machine in VirtualBox is normally started and connected via SSH to Docker, and if the SSH default mapping item is modified, it will cause *error requesting Socket:exit status 255* error, via ' $ Boot2docker Up-v ' can track the startup process. # # Query virtual machine and network query virtual machine name, default startup virtual machine named BOOT2DOCKER-VM ' ' $ vboxmanage list VMs ' query BOOT2DOCKER-VM virtual machine network status ' ' $ vboxmanage SHOWV Minfo "BOOT2DOCKER-VM" | grep NIC "# # # # # # # Close a running virtual machine because Boot2docker automatically runs virtual machines in VirtualBox, you must first close the running virtual machine when you set up the network map. Otherwise, the error message "$ being unlocked" will appear *the machine ' Boot2docker ' was already locked for a session (or Vboxmanage CONTROLVM) * Boo T2DOCKER-VM "Poweroff" # # Modify the network mapping of the virtual machine and Mac system according to the actual needs of network mapping, where-*rulename*: Custom rule name-*hostip*: Mac access address, can not fill-*hostport*: Mac Map Port-*guestip*: Virtual machineAccess address, optional-*guestport*: Virtual machine Map Port "' $ vboxmanage modifyvm" BOOT2DOCKER-VM "--NATPF1" , , , , , "' # # # Start Virtual After the machine setup is complete, restart the virtual machine "$ vboxmanage STARTVM" BOOT2DOCKER-VM "" "# # Run image with [wwj718] (Http://wwj718.github.io) provided by EdX Docker for example, run Its mirror "$ docker run-itd-p 8000:80-p 8010:18010--name edX wwj718/edx_cypress_docker:1.05 ' ' # # View container run status ' ' $ docker PS ' # # Other-delete the mapped port, also need to shut down the virtual machine, delete the command as follows ' $ vboxmanage modifyvm ' boot2docker-vm '--natpf1 delete "

Boot2docker network mappings under Mac system

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.