sequenceiq / hadoop-docker

Hadoop docker image
https://registry.hub.docker.com/u/sequenceiq/hadoop-docker/
Apache License 2.0
1.21k stars 561 forks source link

Changing exposed port for ssh port to be 2122 #28

Closed trisberg closed 9 years ago

trisberg commented 9 years ago

This was needed to be able to ssh to the Docker container for establishing a SOCKS5 proxy.

lalyos commented 9 years ago

if you want to customize the exposed ssh port you can easily do so by:

docker run -p 2122:22 sequenceiq/hadoop-docker:2.6.0

This no Dockerfile modification is needed, and everybody can use its preferred alternte ssh port like 2222/2122/1122

trisberg commented 9 years ago

You have configured SSH to run on port 2122 but the EXPOSE command in the Dockerfile specifies 22 as the port. I just thought they should match.

lalyos commented 9 years ago

Oh i see it now! Your rigth. Thanks for sending it.