so I downloaded docker for windows, hortonwork sandbox docker version, followed the instruction and installed the sandbox.
the code I used to install sandbox is as following
docker run -v hadoop:/hadoop --name sandbox --hostname "sandbox.hortonworks.com"--privileged -p -d 6080:6080-p 9090:9090-p 9000:9000-p 8000:8000-p 8020:8020-p 42111:42111-p 10500:10500-p 16030:16030-p 8042:8042-p 8040:8040-p 2100:2100-p 4200:4200-p 4040:4040-p 8050:8050-p 9996:9996-p 9995:9995-p 8080:8080-p 8088:8088-p 8886:8886-p 8889:8889-p 8443:8443-p 8744:8744-p 8888:8888-p 8188:8188-p 8983:8983-p 1000:1000-p 1100:1100-p 11000:11000-p 10001:10001-p 15000:15000-p 10000:10000-p 8993:8993-p 1988:1988-p 5007:5007-p 50070:50070-p 19888:19888-p 16010:16010-p 50111:50111-p 50075:50075-p 50095:50095-p 18080:18080-p 60000:60000-p 8090:8090-p 8091:8091-p 8005:8005-p 8086:8086-p 8082:8082-p 60080:60080-p 8765:8765-p 5011:5011-p 6001:6001-p 6003:6003-p 6008:6008-p 1220:1220-p 21000:21000-p 6188:6188-p 61888:61888-p 2222:22 sandbox /usr/sbin/sshd -D
however, I can only access those ports, for example 8888 and 2222 from local machine.
I can access 192.168.2.105(the IP of that windows 10 machine):2222 with putty no problem.
but when I use another computer under the same LAN and try to access 192.168.2.105:2222, it just won't connect..
I think it has something to do with the following in the instruction "You then need to spawn a container with the –privileged flag from the image making sure to forward the following ports:...."
I'm so sorry I'm a completely newbie to all of this, does anyone know what should I do??
thanks a lot!
I see two issues with the docker run command. One is that "-p -d 6080:6080" should be "-d -p 6080:6080". The -d flag can't be in the middle of the "-p 6080:6080" port argument. It also looks like the docker run command is missing some spaces. There should be a space between the port and the next -p flag, so "6080:6080-p" should be "6080:6080 -p" for all of the ports listed.
Thank u very much How can I use these cmd's $ ssh -p 2222 root@localhost , $ /etc/init.d/startup_script start inorder to start the sandbox services in windows. .
So the point about the -d flag wrongly placed inside the -p one is valid. Now, if you can access the ports locally from the same computer BUT can't access from outside, that suggests a network configuration issue on your behalf. Have you checked firewall configurations? Also to more easily login to the ssh you can always point your browser to 18.104.22.168:4200 as an alternative to using putty to ssh.