In a Declarative Pipeline, downloading an image is often implicit. By defining an image as your build environment, Jenkins automatically pulls it before executing any stages.
: Install the Docker Pipeline and Docker plugins from Manage Jenkins > Plugins. jenkins pipeline download docker image
: Jenkins checks if the image exists locally. If not, it downloads it from Docker Hub . 2. Manual Pull using Scripted Pipeline In a Declarative Pipeline, downloading an image is
For more control, use Scripted Pipeline syntax to explicitly pull an image into a variable. This is useful for inspection or using the image across different nodes. In a Declarative Pipeline
Before your pipeline can interact with Docker, you must set up the environment: