There was a TV show or maybe TV movie in in the mid 80s where a family was being tormented by a small (possibly devil) type demon. There was a scene where they caught it in a drinking glass like a spider in the kitchen (it was a very small demon). I may have some details wrong as I was a kid when I saw it.
Based on the OP's indication that it might be Trilogy of Terror, I'm going to post it as an answer.
You can see the scene where the female protagonist traps the voodoo demon here;
There was also a sequel to it, but I haven't seen it.