Setting op on Minecraft in Docker

It is possible to use the ops.json file to set a user as op but it requires an exact format.

The alternative is to access the parent server console using Putty and then using the command “docker attach [container name]” replacing [container name] with the name of the Docker container running Minecraft.

Once you have issued that command you will be in the Minecraft server console and can then type op [Player Name] replacing [Player Name] with the name of the player you wish to grant the permission to.