Docker noob default ip question

Hello and happy Saturday! I’m introducing docker to myself and so far I’m really liking what I can do with this. The first issue that I have run into is that I would like to change the default IP address that docker/and or the docker containers run on. For example…I installed the jenkins docker container, and that container runs on localhost:port. I would like to change the localhost to the current IP address of the machine running the docker containers, so I’m able to access the running containers across my local network.

Any help is greatly appreciated. I hope everyone has a great weekend!

so just forward the port of your jenkins container

could try commands like
docker run -p 8080:8080 jenkins....
to forward the jenkins port 8080 to your host 0.0.0.0:8080.
Then you can access 8080 from your local network.

Thank you so much for the reply. I followed your directions and everything worked great, except I feel like I may be missing something. After running the command everything starts up just like it did before at localhost but when I try and access 0.0.0.0:8080 on any other machine on my network, it does not work.

p.s. also a networking newb too.

Thanks so much again for the reply!

1 Like

NVM! I see what it did. Everything is working fantastically!

Thank you so much!