add docker api url to jenkins
add jenkins to dockergroup
gpasswd -a $USER docker gpasswd -a jenkins docker
DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock" in /etc/default/docker file. I did it but nothing changed.
https://stackoverflow.com/questions/37178824/how-do-i-find-the-docker-rest-api-url