The earlier instructions had: *Launching Jenkins can then be accomplished with a simple docker command* *as the root user (copy/paste to your VM):*
* sudo su -* * docker run --name jenkins --rm -u root -d -p 8080:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock -v /home/jenkins:/var/jenkins_home jenkins/jenkins:lts* But I had already installed Docker. *root:~# docker run --name jenkins --rm -u root -d -p 8080:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock -v /home/jenkins:/var/jenkins_home jenkins/jenkins:lts* *88bd4006e1fbef8faf2d0652f4d56dec12fd1206c24fb2d3c6fa7ee8a8a3008c* *docker: Error response from daemon: driver failed programming external connectivity on endpoint jenkins (4cd8f8c2ee5d501f93f830f6932c383b5948ca77520f4ba3757f2dcf30e3d5d2): Bind for 0.0.0.0:50000 failed: port is already allocated.* On Wednesday, February 3, 2021 at 9:29:37 AM UTC-6 Anil wrote: > In my reply above, I posted the command. > I think it may have something to do with the filesystem. > When I cat /home/jenkins/secrets/initialAdminPassword > it cannot find the file. > Is there something I should do to map the drive correctly? > > On Tuesday, February 2, 2021 at 9:21:45 PM UTC-6 Mark Waite wrote: > >> I think you've mistakenly mapped port 8080 on the Windows computer to >> port 50000 in the running Docker container. I see that output if I open >> http://localhost:50000 on a Docker container started by the Docker >> Desktop app on Windows 10 with port 50000 mapped to 500000. >> >> You need to map port 8080 on the Windows computer to port 8080 in the >> running Docker container. >> >> [image: image.png] >> >> Interesting user interface choice of Docker Desktop that they default to >> show port 50000 as a possible port to map, but by default they do not show >> port 8080. I had to press the "+" character to the right of the row >> containing port 50000. >> >> Mark Waite >> >> On Tue, Feb 2, 2021 at 7:05 PM Slide <[email protected]> wrote: >> >>> What does your docker command look like? >>> >>> On Tue, Feb 2, 2021, 13:43 Anil <[email protected]> wrote: >>> >>>> Jenkins 2.263.3 LTS Windows 10 Home Docker Windows Ubuntu >>>> >>>> I am learning Jenkins and was trying to run it in a docker image. >>>> I started up Docker Desktop and clicked Run on jenkins:lts >>>> However when I go to localhost:8080, this is what I see, and not the >>>> Jenkins web page. >>>> >>>> >>>> [image: Capture.PNG] >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Jenkins Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/jenkinsci-users/b3bf430d-c036-400a-8672-4ff858e782ben%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVexdjpM37Tg1BObgROYmrnKB-_OXManWGDbmbggyWCyfA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea09b46a-8dde-4356-9b5f-9a34af04cb44n%40googlegroups.com.
