zuazo / dradis-docker

A Docker image with Dradis: A collaboration and reporting platform for IT security experts.
https://hub.docker.com/r/zuazo/dradis/
Apache License 2.0
12 stars 18 forks source link

How to change port of container? #1

Closed hshar7 closed 7 years ago

hshar7 commented 7 years ago

Hello, I am trying to change the port of the container. Any idea? It seems like no matter what I do it remains at 3000!

zuazo commented 7 years ago

See run_example.sh:

docker run \
  -p 3000:3000 \
  --volume "$(pwd)/dbdata:/dbdata" \
zuazo/dradis "${@}"

You can change you host port with the -p option there. For example:

docker run \
  -p 4000:3000 \
  --volume "$(pwd)/dbdata:/dbdata" \
zuazo/dradis "${@}"
hshar7 commented 7 years ago

Seems to still be running on 3000

hshar7 commented 7 years ago

Seems like there was a problem with my iptables on centos vm. Fixed thanks to comment on https://github.com/docker/docker/issues/1871 Thanks @zuazo