Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • if the Jenkins container is restarting again and again then check the logs using below command

    Code Block
    languagebash
    sudo docker logs --tail 50 –follow --timestamps Jenkins


  • If the logs are showing like below Wrong volume permissions?

    Code Block
    languagebash
    	touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied
    Can not write to /var/jenkins_home/copy_reference_file.log. 

    The volume directory /data/jenkins need to be separated with the admin ownership to keep the Jenkins home

    Code Block
    languagebash
    sudo chown 1000 /data/Jenkins

    Then run the command: (Now the container is up and running.)

          sudo docker ps -a 

...

  • Code Block
    languagebash
    sudo docker ps -a 

    Executing into Jenkins container

    Code Block
    languagebash
    sudo docker exec -it jenkins /bin/bash 

    Inside the Jenkins container, go to /var/Jenkins_home/secrets/ directory. Copy the initial admin password like this

    Code Block
    languagebash
    cat /var/Jenkins_home/secrets/initialAdminPassword