instruction: Show me how to configure jenkins for CI/CD automation
output: If you are installing Docker on a Linux-based operating system, ensure you configure Docker so it can be managed as a non-root user.
  Read more about this in Docker’s Post-installation steps for Linux page of their documentation.
  This page also contains information about how to configure Docker to start on boot.
  A new jenkins/jenkins image is published each time a new release of Jenkins Docker is published.
  You can see a list of previously published versions of the jenkins/jenkins image on the tags page.
  docker network create jenkins
  docker run \ --name jenkins-docker \ (1) --rm \ (2) --detach \ (3) --privileged \ (4) --network jenkins \ (5) --network-alias docker \ (6) --env DOCKER_TLS_CERTDIR = /certs \ (7) --volume jenkins-docker-certs:/certs/client \ (8) --volume jenkins-data:/var/jenkins_home \ (9) --publish 2376:2376 \ (10) docker:dind \ (11) --storage-driver overlay2 (12)
  If you have problems copying and pasting the above command snippet, use the annotation-free version below:
  docker run --name jenkins-docker --rm --detach \ --privileged --network jenkins --network-alias docker \ --env DOCKER_TLS_CERTDIR = /certs \ --volume jenkins-docker-certs:/certs/client \ --volume jenkins-data:/var/jenkins_home \ --publish 2376:2376 \ docker:dind --storage-driver overlay2
  FROM jenkins/jenkins:2.516.1-jdk21
  USER root
  RUN apt-get update && apt-get install -y lsb-release ca-certificates curl && \
   install -m 0755 -d /etc/apt/keyrings && \
   curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \
   chmod a+r /etc/apt/keyrings/docker.asc && \
   echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
   https://download.docker.com/linux/debian $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable" \
   | tee /etc/apt/sources.list.d/docker.list > /dev/ && \
   apt-get update && apt-get install -y docker-ce-cli && \
   apt-get clean && rm -rf /var/lib/apt/lists/*
  USER jenkins
  RUN jenkins-plugin-cli --plugins "blueocean docker-workflow json-path-api"
  docker build -t myjenkins-blueocean:2.516.1-1 .
  docker run \ --name jenkins-blueocean \ (1) --restart = on-failure \ (2) --detach \ (3) --network jenkins \ (4) --env DOCKER_HOST = tcp://docker:2376 \ (5) --env DOCKER_CERT_PATH = /certs/client \ --env DOCKER_TLS_VERIFY = 1 \ --publish 8080:8080 \ (6) --publish 50000:50000 \ (7) --volume jenkins-data:/var/jenkins_home \ (8) --volume jenkins-docker-certs:/certs/client:ro \ (9) myjenkins-blueocean:2.516.1-1 (10)
  If you have problems copying and pasting the command snippet, use the annotation-free version below:
  docker run --name jenkins-blueocean --restart = on-failure --detach \ --network jenkins --env DOCKER_HOST = tcp://docker:2376 \ --env DOCKER_CERT_PATH = /certs/client --env DOCKER_TLS_VERIFY = 1 \ --publish 8080:8080 --publish 50000:50000 \ --volume jenkins-data:/var/jenkins_home \ --volume jenkins-docker-certs:/certs/client:ro \ myjenkins-blueocean:2.516.1-1
  docker network create jenkins
  docker run --name jenkins-docker --rm --detach ^ --privileged --network jenkins --network-alias docker ^ --env DOCKER_TLS_CERTDIR = /certs ^ --volume jenkins-docker-certs:/certs/client ^ --volume jenkins-data:/var/jenkins_home ^ --publish 2376:2376 ^
   docker:dind
  FROM jenkins/jenkins:2.516.1-jdk21 USER root RUN apt-get update && apt-get install -y lsb-release RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ https://download.docker.com/linux/debian/gpg RUN echo "deb [arch= $( dpkg --print-architecture ) \ signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ https://download.docker.com/linux/debian \ $( lsb_release -cs ) stable" > /etc/apt/sources.list.d/docker.list RUN apt-get update && apt-get install -y docker-ce-cli USER jenkins RUN jenkins-plugin-cli --plugins "blueocean docker-workflow json-path-api"
  docker build -t myjenkins-blueocean:2.516.1-1 .
  docker run --name jenkins-blueocean --restart = on-failure --detach ^ --network jenkins --env DOCKER_HOST = tcp://docker:2376 ^ --env DOCKER_CERT_PATH = /certs/client --env DOCKER_TLS_VERIFY = 1 ^ --volume jenkins-data:/var/jenkins_home ^ --volume jenkins-docker-certs:/certs/client:ro ^ --publish 8080:8080 --publish 50000:50000 myjenkins-blueocean:2.516.1-1
  If you are not sure what plugins you need, choose Install suggested
  plugins .
  You can install (or remove) additional Jenkins plugins at a later point in time
  via the Manage Jenkins > Plugins page in Jenkins.