How to install Cocaopod in Jenkins Docker images

OS Version: MAC OS 10.11.6

My iOS project is using Cocoapods, then when I run the project in Docker Jenkins images , it requests Cocoapods installed in this server
But Jenkins images don’t have Cocoapods . How I can install Cocoapods in Jenkins Docker ?