Installing tools
Before we deep dive into installing Docker, we need to install supporting tools for us to progress. So, let's first install Git and vim.
Git is the command-line tool that will help you clone code from Git repositories. We will use several repositories for our exercises in future chapters.
Vim is a popular text editor for Linux and Unix operating systems, and we will use it extensively in this and the coming chapters. There are alternatives to vim, such as the GNU nano editor, VS Code, and Sublime Text. Feel free to use whatever you are comfortable with.
Installing Git
Open your shell terminal and run the following command:
$ sudo apt update -y && sudo apt install -y git
Tip
If you get an output such as E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?, that's because apt update
is already running, so you should wait for 5 minutes and then retry.
To confirm that Git is...