Imprisonment Dreams:

“Feeling imprisoned as if you are in jail is a very common dream theme. Generally speaking when you have a prison dream, it means that you are stuck being controlled by forces outside of yourself. You are jailed inside, while a prison keeper has the key or control to your freedom. It can come from having grown up in in a very controlling household, or experience an overly strict environment in school or in your work. The commonality of the experience is that your own higher self is not the one in control. Who is in control is someone else’s ego or an institution’s ego. As long as you do what you are told, you are fine in life, but the imprisoned feeling comes when you are feeling like your own spirit is confined.” Richard Hastings

Generally speaking when you have a prison dream, it means that you are stuck being controlled by forces outside of yourself.