def cmd_CONTAINER(self, line):
        config = ContainerOptions(self.terminal)

        try:
            config.parseOptions(line)
            cmd = config.subCommand
            opts = config.subOptions if hasattr(config, 'subOptions') else {}
        except usage.UsageError as errortext:
            self.terminal.write("BUG in usage: {0}".format(errortext))
        else:
            if cmd == 'start':
                if (opts['name']):
                    data = {}
                    if opts.get('group'):
                        data['group'] = opts['group']
                    if opts.get('groupIp'):
                        data['groupIp'] = opts['groupIp']
                    if opts.get('size'):
                        data['size'] = opts['size']
                    if opts.get('bandwidth'):
                        data['bandwidth'] = opts['bandwidth']
                    if opts.get('memory'):
                        data['memory'] = opts['memory']
                    if opts.get('specialopts'):
                        data['specialFeatures'] = opts['specialopts']
                    self.callToUser('createContainer', 'robot', opts['name'],
                                    data)

            elif config['stop']:
                self.callToUser('destroyContainer', 'robot', config['stop'])
            elif config['services']:
                self.callToRosProxy('services', config['services'])
            elif config['topics']:
                self.callToRosProxy('topics', config['topics'])
            elif config['list']:
                self.callToUserAndDisplay('list_containers', 'console')
            elif config['username']:
                self.callToUserAndDisplay('list_containers_by_user', 'admin',
                                          config['username'])
Handler for container command.
dataset/ETHPy150Open rapyuta/rce/rce-console/rce/console/console.py/ConsoleClient.cmd_CONTAINER