Unable to activate plugin
I have deployed the mattermost-team-edition in ubuntu server on an amazon ec2 using the mattermost docker. I installed a plugin named mattermost-plugin-oembed by compressing it into tar.gz following the documentation of plugin but I got following error while enabling the plugin.

I used the same plugin compressed file in my local environment without using docker it works fine but when I use it in my docker environment I get the following message in my server logs.
{"timestamp":"2021-10-22 04:28:53.738 Z","level":"error","msg":"Unable to activate plugin","caller":"app/plugin.go:146","plugin_id":"com.mattermost.oembed","error":"unable to start plugin: com.mattermost.oembed: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."}
I am unaware why I am getting this error or is this an issue with the docker version of mattermost.
Additional Information:
- MATTERMOST_IMAGE=mattermost-team-edition
- MATTERMOST_IMAGE_TAG=5.33.1
- Database Schema Version: 5.33.1
- Database: postgres