Global OAuth never gets added in Docker Remote

When using a Docker Remote machine and Target set to Docker Remote, adding an OAuth2 under Globals allows you through all the steps and saves with a success message but if you refresh the Server actions, it disapears.
When looking at my local folder structure I can see the app/modules folder has nothing but the connections folder inside it, so it really is not saving.
If I set my target to local then the folder is created and the file saved inside it, then i can switch back to the remote target and deploy, however even editing the file thereafter requires a switch back to local.