Building Docker Images in a Jenkins Pipeline with a DIND Jenkins Agent

Error thrown

Call to a member function id() on array