I am using ec2-instance. installed docker and running rundeck in a container.
How can i expose 4440 port to local ec2 ip address ? i.e, htttp://ec-2ip:4440 should show me rundeck dashboard.
I am using ec2-instance. installed docker and running rundeck in a container.
How can i expose 4440 port to local ec2 ip address ? i.e, htttp://ec-2ip:4440 should show me rundeck dashboard.
You can do something like this.
docker run -it -p 4440:4440 rundeck
-p
does the job here. You are publishing the container port on the host. The mapping is -p host_port:container_port
Refer this articles for more options.
https://docs.docker.com/engine/userguide/networking/default_network/binding/ https://github.com/wsargent/docker-cheat-sheet#exposing-ports