Install Docker on a Linux Host
- Docker for Linuxrequires64-bit Linux and kernel version 3.10.0 or later(Docker recommends you use the latest kernel available). Additional Docker CE for Linux requirements can be found in the online Docker documentation.1
- Dockerrequiresthat your development system's CPU include support for the full range of hardware virtualization available in most modern mobile, desktop, and server CPUs. On an Intel processor, this means your CPU supportsVT-x,VT-d,andVT-x with EPT(all three virtualization features must be supported). You can determine if your Intel CPU supports these features by visiting ark.intel.com and searching for the processor in your development system. On AMD* processors, the necessary virtualization features are known generally asAMD-V.
- Some systems disable the CPU virtualization features in the BIOS, which prevents the OS from detecting and making use of virtualization features. The process used to enable virtualization in a BIOS varies widely, as does the name of the feature(s) in the BIOS setup menus.Virtualization Technology (VT) should be enabled by default in most recent system BIOSes.
Determine if virtualization is enabled on your Ubuntu system
- Install the "cpu-checker" package and test your system's virtualization status using the "kvm-ok" utility:$ sudo -E apt-get install cpu-checker
- If virtualization is enabled, you should see the following when executing the "kvm-ok" command:$ sudo kvm-ok INFO: /dev/kvm exists KVM acceleration can be used
- If virtualization is disabled (or your CPU does not support virtualization), the "kvm-ok" command will respond as follows:$ sudo kvm-ok INFO: Your CPU does not support KVM extensions DVM acceleration can NOT be used
- If the "kvm-ok" command fails, check the virtualization capabilities of your system's processor and confirm that virtualization has been enabled in your system's BIOS.
Enable virtualization if it has been disabled in your BIOS
- Reboot your system.
- During reboot, enter your system's BIOS setup by pressing the 'Esc', 'F1', 'F2', 'Del', or 'Enter' key. The precise key needed to enter the BIOS setup will depend on your system's make (manufacturer) and model. Pay close attention to any on-screen instructions provided during power-on for hints regarding how to enter the BIOS setup. You may also find help at your system manufacturer's support web site.
- Look for an option labeled 'Virtualization', 'Virtualization Technology', or 'Intel® Virtualization Technology', which is usually located under 'CPU Configurations', 'CPU Setup', 'System Configurations', 'Advanced', or a 'Security' tab.
- Check to see if the VT option is enabled or disabled. If VT is disabled in the BIOS, enable it.
- Save the BIOS settings and reboot your system by pressing the 'F10' key.