Hi Lian, localhost in the docker container is not the same as localhost on your own computer. The address where the container can talk to your computer depends on the networking mode and OS. See https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach for examples.
-Attila On Tue, Jan 30, 2018 at 5:13 PM, Lian Jiang <[email protected]> wrote: > Hi, > > I am using ambari-shell docker > (http://blog.sequenceiq.com/blog/2014/05/26/ambari-shell/). However, > > docker run -it --rm sequenceiq/ambari-shell --ambari.host=localhost > --ambari.port=8080 > > threw error "Cannot get property 'items' on null object" even I can use > ambari web UI to sign in localhost:8080 using admin/admin. > > Any idea will be highly appreciated!
