Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

screen docker desktop tty

I try to screen into docker desktop vm using screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty, which work previously. But today is said Cannot execute "/Users/myusername/Library/Containers/com.docker.docker/Data/vms/0/tty": Operation not permitted. I search and found solution saying setting security and privacy of system preference which I did follow (below image). But still I got the errors, can anyone help?

Add Full Disk Access

like image 750
HKIT Avatar asked Sep 10 '25 03:09

HKIT


1 Answers

While I don't understand the reason for this issue, I experienced the same, and the following helped for me:

  • Make the tty file readable: chmod 400 ~/Library/Containers/com.docker.docker/Data/vms/0/tty
  • Do not try to execute that file, but read its contents: screen $(cat ~/Library/Containers/com.docker.docker/Data/vms/0/tty)

Not the most beautiful solution, but works form me.

like image 124
Bastian Friedrich Avatar answered Sep 13 '25 02:09

Bastian Friedrich