1. First open the VirtualBox, click on the "New" button, Pop-up dialog box, the selected type is Linux, version is 64-bit, to install Docker on Ubuntu, and Docker can only run on a 64-bit machine. Then enter the name (this is optional, preferably in English), and finally click Continue
2. Allocate memory to virtual machine, size 1g,2g,4g can, according to own host decide
3. Create a virtual hard disk, the size of which can be determined after
4. Virtual hard disk File type, select the default
5. Set the size of the virtual hard disk
The hard disk resources required by the virtual machine are now ready, and it's OK to import the Ubuntu image into it.
6. Click "Settings" button, pop up the dialog box, then click on "Storage" + "Controller IDE" under the "no disc" + to assign the optical drive to the right of the??, select the already downloaded Ubuntu ISO image
7. Open the VirtualBox in the Newubuntu will go to the following interface, language English and Chinese are optional, click on the installation of Ubuntu, then choose the default options, all the way to continue
Set User name
Finally, wait until the Ubuntu installation succeeds, and the final installation may take a while
Install ubuntu18.04 based on VirtualBox