Since Jenkins now relies on Docker, we must install Docker on this Jenkins server:
jenkins@ci:$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -jenkins@ci:$ sudo add-apt-repository "deb [arch=amd64] \ https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable"jenkins@ci:$ sudo apt updatejenkins@ci:$ sudo apt install -y docker-ce
This installation will do a few things, as follows:
- Install the Docker Engine, which runs as a daemon in the background
- Install the Docker client, which is a command-line tool (docker) we can run in our Terminal
- Create a user on our machine called docker, and assign it to the docker group
To check Docker is installed properly, you can check its status by running ...