When required you can tell Docker to execute additional commands on an already running container using the
exec command. You need the container's ID which you can get with
docker exec 294fbc4c24b3 echo "Hello World"
You can attach an interactive shell if you use the
docker exec -it 294fbc4c24b3 bash