What is your deck set up? I have rounded railings and have had great success with this style and with these. The second ones have these little inserts at the inside that “grip” the rail and can be adjusted for size. They are deep enough to grow pretty tall pea plants.
If I had a square railing, the first ones might still work (they have square variants) or this type
Best of luck, hope you post pics!