Not able to start SPARK inside a container

Hello Team,
I just Installed docker 17.06.1-ce in centos 7.3, I am using spark-2.1.0-bin-hadoop2.7 inside the docker container, And trying to start the spark service by using the command ./start-all.sh.
Getting below exception while starting the service.

[root@f451a7c9fcf8 sbin]# ./start-all.sh
starting org.apache.spark.deploy.master.Master, logging to /data/enliven/installations/spark-2.1.0-bin-hadoop2.7//logs/spark–org.apache.spark.deploy.master.Master-1-f451a7c9fcf8.out
172.17.0.2: ssh: connect to host 172.17.0.2 port 22: Connection refused.

Please help on this