You are on page 1of 2

Prerequisites For Docker Installation

Install Virtualbox

Virtualbox installation is very simple. You just need to download the latest Debian package of
Virtualbox from their website. After successful download, use the Debian package manager
(DPKG) to install Virtualbox from the package. Once the installation is done, you need to verify
Virtualbox version to check whether it is properly installed or not.

# Install Virtualbox.

$ wget https://download.virtualbox.org/virtualbox/6.0.10/virtualbox-6.0_6.0.10-
132072~Ubuntu~bionic_amd64.deb -P ~/Downloads

$ sudo dpkg -i ~/Downloads/virtualbox-6.0_6.0.10-132072~Ubuntu~bionic_amd64.deb

$ virtualbox --help

Install Vagrant

Vagrant installation is very simple. You just need to download the latest Debian package of
Vagrant from their website. After successful download, use the Debian package manager (DPKG)
to install Vagrant from the package. Once the installation is done, you need to verify Vagrant
version to check whether it is properly installed or not.

# Install Vagrant.

$ wget https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.deb -P
~/Downloads

$ sudo dpkg -i ~/Downloads/vagrant_2.2.5_x86_64.deb

$ vagrant --version

# Install Virtualbox guest additions plugin for Vagrant.


$ sudo vagrant plugin install vagrant-vbguest

Modify Hosts

Here, we need to add required entries in /etc/hosts file to resolve hostnames for IP addresses.
If we miss these entries, we may not be able to access the expected services from the web
browser. If single hostname is mapped to multiple IP addresses, comment it. Otherwise, you will
endup with resolving wrong IP address for a given hostname.

# Add entries in /etc/hosts file to resolve hostnames for IP addresses.

$ sudo vim /etc/hosts

100.1.1.10 app.crm

You might also like