@Override
                public void run() {
                    try {
                        Runtime rt = Runtime.getRuntime();
                        String dockerKillCommand = "docker kill " + amContainerId;
                        LOG.info("Docker kill command:" + dockerKillCommand);
                        Process process = rt.exec(dockerKillCommand);
                        int i = process.waitFor();
                        LOG.info("Docker Kill Wait:" + (i == 0 ? "Success" : "Failed"));
                        BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
                        String line;
                        while ((line = br.readLine()) != null) {
                            LOG.info(line);
                        }
                    } catch (Exception e) {
                        LOG.warn("Docker Kill Error:", e);
                    }
                }
Constructor, connect to Resource Manager

@throws IOException
core/src/main/java/net/qihoo/hbox/AM/ApplicationMaster.java