protected function setDockerSyncNameInEnv()
    {
        $project_root = ProjectX::projectRoot();
        $project_name = ProjectX::getProjectMachineName();
        $sync_name = uniqid("$project_name-", false);

        $this->taskWriteToFile("{$project_root}/.env")
            ->append()
            ->appendUnlessMatches('/SYNC_NAME=\w+/', "SYNC_NAME=$sync_name")
            ->run();

        return $this;
    }