Docker-build-step plugin doesn't use the local Docker installation automatically.[(https://stackoverflow.com/a/54540105)]
In Manage Jenkins → Configure System → Docker Builder, the Docker URL option is left blank. Fill it with unix:///var/run/docker.sock.