code: def create_container(app_id,container_id,container_name):
      
      try:
          conn = get_conn()
          c = conn.cursor()
          c.execute("INSERT INTO container (id,name,app_id) VALUES ('{0}','{1}','{2}')"
              .format(container_id,container_name,app_id))
          conn.commit()
          conn.close()
          print 'create container %s succeed!' % app_id
      except Exception,e :
          raise RuntimeError('create container %s failed! %s' % (app_id,e))
docs: insert container record when create container