Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since Jenkins is a Java application, the first step is to install Java. Update the package index and install the Java 8 OpenJDK package with the following commands

Code Block
languagebash
sudo apt-get update
sudo apt install openjdk-8-jdk

...

Step 1: First, in order to ensure the downloads are valid, add the GPG key for the official Docker repository to your system

Code Block
languagebash
curl -s
 https://apt.dockerproject.org/gpg | sudo apt-key add
apt-key
 fingerprint 58118E89F3A912897C070ADBF76221572C52609D

step Step 2: Add the Docker repository to APT sources

Code Block
languagebash
sudo
add-apt-repository "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main"

step Step 3: Next, update the package database with the Docker packages from the newly added repo


Code Block
languagebash
sudo apt-get update


Step 4 : Make sure you are about to install from the Docker repo instead of the default Ubuntu 16.04 (xenial):

Code Block
languagebash
sudo apt-cache policy docker-engine