Connecting to bash in a docker background running container

Problem

You have a running docker container running in the background (as a daemon) and you want to connect to it.

Solution

Taken from the answer here, you can use the following to connect to it: