# # 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