protected function runCommandInContainer(
        $container_id,
        $command,
        array $options = [],
        $quiet = false,
        $interactive = false
    ) {
        if (!isset($container_id) || !isset($command)) {
            return false;
        }
        /** @var Exec $docker_execute */
        $docker_execute = $this->taskDockerExec($container_id);

        if ($quiet) {
            $docker_execute->printOutput(false);
        }

        if ($interactive) {
            $docker_execute->interactive(true);
        }

        if (!empty($options)) {
            $docker_execute->options($options);
        }

        return $docker_execute
            ->exec("sh -c \"{$command}\"")
            ->run();
    }