Docker can be installed in two ways: using the Ubuntu repositories or using the official Docker repository:
- If you would just like to explore and save a couple of minutes with just a single line installation, go ahead and install from the Ubuntu repository.
- If you would like to explore more options with Docker other than what is intended in this book, I would suggest that you go ahead and install from official Docker repositories as they will have the most stable and bug-fixed packages with added features.
Before going ahead with either of the following installations, ensure you update the apt package index using $ sudo apt-get update.