Its a little bit late for the original post, but i just wanted to "solve" the issue for people having the same problem and looking at this post for help.
So the error comes from not registering the container.
In this specific case its cause u forgot "@SubscribeEvent" at your method for the container registration.
I got the error myself cause i set a registry name ^^.