Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
screenshot: [image: Capture.JPG] On Wednesday, February 3, 2021 at 3:31:35 PM UTC-6 Anil wrote: > root:/home/jenkins# docker ps -a > CONTAINER ID IMAGE COMMAND CREATED > STATUS PORTS > NAMES > a0c268c14b94 jenkins/jenkins:lts

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
root:/home/jenkins# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a0c268c14b94 jenkins/jenkins:lts "/sbin/tini -- /usr/…" 4 hours ago Up 4 hours 0.0.0.0:8080->8080/tcp, 0.0.0.0 The dashboard is

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Tej Singh Rana
Hello, Anil Your previous docker command has created a container and that's using that 5 port. Remove that container first then rerun docker command again. *To list the inactive container:* docker ps -a *To rm container:* docker rm Regards, On Wed, Feb 3, 2021 at 11:39 PM Anil

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
It started working. I don't know what fixed it but these are what I tried: 1) In Docker Desktop, reset all data to factory defaults 2) Created ubuntu root password and su - 3) Turned off experimental Docker feature "cloud enabled". 4) I found the secret admin password in the Console in Docker

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
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 5:5 -v /var/run/docker.sock:/var/run/docker.sock -v

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
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

Re: jenkins web page not launching when run from docker

2021-02-03 Thread Anil
In an ubuntu terminal (Windows 10 Home WSL2) I ran the provided code from the tutorial (Jenkins Essential Training): I ran it under root useradd jenkins -m docker run \ -u jenkins \ --rm \ -d \ -p 8080:8080 \ -p 5:5 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v

Re: jenkins web page not launching when run from docker

2021-02-02 Thread Mark Waite
I think you've mistakenly mapped port 8080 on the Windows computer to port 5 in the running Docker container. I see that output if I open http://localhost:5 on a Docker container started by the Docker Desktop app on Windows 10 with port 5 mapped to 50. You need to map port 8080

Re: jenkins web page not launching when run from docker

2021-02-02 Thread Slide
What does your docker command look like? On Tue, Feb 2, 2021, 13:43 Anil <1dropafl...@gmail.com> 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 >