protected function getContainerName($container) {
    $this->validateConfig();
    // Project name is defined in a nice, human-readable style, so lowercase it
    // first.
    $project_lowercase = strtolower($this->config->get('name'));
    // Replace all spaces to match the behavior of Docker Compose. Then finally
    // append container name.
    return str_replace(' ', '', $project_lowercase) . '_' . $container;
  }