Access docker from outside networks

Hi,
I have set up jenkins using docker but it is only accessible from my local machine. I want it to be accessible to other machines too. I am using linux machine. Is there a solution for this problem?

Hi.

If you mapped the ports, you should be able to access it from other machines.
If you’re not sure, please provide the command/compose-file you used to create the jenkins container.

this is the command that i ran:docker run -itd --name jenkins -p 8080:8080 -p 50000:50000 -v /var/jenkins_home jenkins