• Uncategorized

About linux : ERROR-In-file-docker-composeyml-service-must-be-a-mapping-not-a-NoneType-how-to-solve-this-problem

Question Detail

I’m trying to install Jenkins in Ubuntu, and I don’t known how to solve this problem. I attach a photo of the error.

Thanks! enter image description here

Question Answer

Line 2 is syntax error. Please check with other example:

version: '3.7'
    image: jenkins/jenkins:lts
    privileged: true
    user: root
      - 8081:8080
      - 50000:50000
    container_name: jenkins
      - ~/jenkins:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/local/bin/docker:/usr/local/bin/docker

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.