detect container's ip address automatically when not specified in config file.
container can only be destroyed in stopped stage.
write container's ip back to config to speed up the load time of dashboard
Merge remote-tracking branch 'xbddc/master'