Attempting to detach with the tmux keybinding ctrl+a d will kill
the container, but you can detach via the docker keybinding
ctrl+p ctrl+q
Attempting to attach to the running tmux session with docker exec
and tmux attach will fail with
open terminal failed: not a terminal, but docker attach works
Related projects
Eugene Yaramenko’s dockerized gui spacemacs on github and Docker hub