function parseCGroupsV1(info, cgroup, eachCb) {
  const target = new RegExp('^\\d+:[^:]*?\\b' + cgroup + '\\b[^:]*:')
  const lines = info.split('\n')
  for (let i = 0; i < lines.length; ++i) {
    const line = lines[i]
    if (target.test(line) && !eachCb(line.split(':')[2])) {
      break
    }
  }
}
Iterate line by line to extract the container id from the cpu stanza

@param {string} info contents of file
@param {string} cgroup value is cpu
@param {Function} eachCb funtion to test if the container id exists