You still will attract and feed bees when you grow plants in flower pots.
In the image above a honey bee is feeding on the nectar of flowers on a thyme plant. I grow herbs in medium sized plastic flower pots on a table in the backyard. And the bees enjoy the flowers. Plastic flower pots are great because they hold moisture in the soil longer than ceramic pots.