In the “attacking web apps manually” lesson of my course, I show how to use socat to create a reverse shell to connect to the target server/container.
Socat is a tool familiar to netcat, which most tutorials focus on. Netcat is considered to be a bit more basic and has less functionality, but it’s not quite as verbose. So people typically use netcat over socat unless they need functionality that’s not supported, since it’s a bit easier to use.
I recommend that you try using both and decide which you prefer, and that’s why I covered socat since it’s not as widely covered!