Installing Docker on jenkins pipeline

I am currently following Jenkins pipelines course. I have been trying to build image using docker command but it is throwing docker not found error. In the lecture, it was not shown how sidd has installed it and using docker cmds.

Can anyone help me or share any docs to install it.

FYI, I have built-in node as a agent in jenkins.

Thanks in advance.

On the assumption you’ve set your Jenkins lab on an Ubuntu host, you can install it using apt; it’s the docker.io package on the system I’m using. This should make it available to Jenkins.

1 Like

Hi @GOKUL-B,

This is similar to a recent topic discussed here: Executing docker commands in Jenkins Pipeline, you can refer to it for more details.

1 Like