in linux terminal ,usally use "ctrl +z " ,“fg” command . it is very useful!
but , i installed docker desktop in win10 system . and run ubuntu system through docker .
when i use "ctrl +z " command ,and the docker logout . what should i do? thanks !
2 Likes
Would like to bump this thread. Would be useful to have bg/fg process availability inside of a docker container. Will post if I find out a workaround.
On Windows 11, one can set the terminal manager to use your local WSL distribution (where ^z is suspend) and attach to the docker process from there. As an example, I usually start the docker container independently and attach to a running container. Here’s an example of the Windows Terminal command line I configured to attach to my container (running Ubuntu 24.04):
ubuntu2404.exe -c “docker exec -it your_container_name_here /bin/bash”
Hope this helps - Marie