If you don't have room for a bedside table then a clip on bed shelf may be the next best solution. This soft and secure bedside pocket is the perfect place to keep all your bedside essentials safe.
According to the manufacturer, this will fit all beds. The top half of the pocket either slides under the mattress or down the side to keep it secure. The pocket is big enough to fit a MacBook air.
This is a very simple option at a really good price point. It would work well for bunk or loft beds.