I would call the first image a _railing_, or a _handrail_.  
>- [railing](http://www.dictionary.com/browse/railing)  
a fencelike barrier composed of one or more horizontal rails supported by widely spaced uprights; balustrade. 
- [handrail](http://www.dictionary.com/browse/handrail)    
a rail serving as a support or guard at the side of a stairway, platform, etc.   

>(Dictionary.com)


The second one, I would call it a _rack_, or a _bike rack_. It could also be called a _stand_.
>A bicycle parking rack, usually shortened to bike rack and also called a bicycle stand, is a device to which bicycles can be securely attached for parking purposes.  
([Wikipedia](https://en.wikipedia.org/wiki/Bicycle_parking_rack))

Wikipedia has a few specific names, like _U-rack_. It says the variant names are _Staple_ and _Sheffield rack_.  
[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/SHdeo.png