Docker run failing

In Docker run the video lecture, it got successful but why i am facing this issue, Can you help,

Please provide me steps,i am new to linux

I installed docker on centos7 and ran the below command as shown in the video for reference added a screenshot of video chapter Docker run 2nd video, I successfully connected Jenkins by external and internal but when I mount the volume it failed.

[osboxes@osboxes ~]$ docker run -p 8888:8080 -v /root/my-jenkins-data:/var/jenkins_home -u root jenkins/jenkins
touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied
Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?
[osboxes@osboxes ~]$

image

Hello @cloudlearningk8s,
As mentioned there you need to figure out your volume mapping permissions
ie.

sudo chown -R 1000:1000 /root/my-jenkins-data