Closed
Description
- I have tried with the latest version of my channel (Stable or Edge)
- I have uploaded Diagnostics
- Diagnostics ID: BFD655CF-D206-4905-B5AD-06447A5E3DDF/20200731174034
Expected behavior
Allows to acces by terminal to tty related to docker
Actual behavior
% screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
[screen is terminating]
%
Information
- macOS Version: 10.15.6
Diagnostic logs
- Docker for Mac: version 2.3.0.4
Steps to reproduce the behavior
- open Terminal
- screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
Activity
dpkirchner commentedon Aug 24, 2020
You can get slightly further if you run
chmod 777 ~/Library/Containers/com.docker.docker/Data/vms/0/tty
and runscreen -m -L ~/Library/Containers/com.docker.docker/Data/vms/0/tty
. In that case you'll see this in thescreenlog.0
file (created by the-L
flag):I haven't figured out how to run screen without the tty to fix the buggy permissions there.
This bug also affects version 2.3.5.0 (edge channel). I uploaded a diagnostic log as well:
D7716AFD-F809-46C0-9AB4-2EE25C4697EB/20200824172454
ibalashov commentedon Sep 8, 2020
@dpkirchner I did the command above
screen -m -L
and got the following:But not sure how to proceed. Docker
2.3.0.4
.dpkirchner commentedon Sep 8, 2020
I'm not sure, you got a lot further along than I did. FWIW, I run in to exactly the same bug in 2.3.0.4 as I did in 2.3.5.0.
There's a StackOverflow comment about the issue suggesting a solution that may work for some cases: https://stackoverflow.com/a/60582083 It doesn't work for my specific use case, unfortunately, but it might help you out.
hnkhuy commentedon Sep 13, 2020
I met this issue on 2.3.0.4(46911) too. And the log is:
/Users/huyhuynh/Library/Containers/com.docker.docker/Data/vms/0/tty: line 1: /dev/ttys004: Permission denied
I tried
chmod 400
,chmod 777
andsudo
in front also not work :'(stevegoossens commentedon Sep 23, 2020
Until this is fixed, here are two workaround methods that worked for me: https://stackoverflow.com/a/63595817/1456285
jenildesai25 commentedon Oct 9, 2020
I have tried using method 1 from above link -> https://stackoverflow.com/a/63595817/1456285
I did enter into terminal but after that how to navigate?
stevegoossens commentedon Oct 9, 2020
Once you have terminal access to the VM, you can find the volume data in the usual place, i.e.
/var/lib/docker/volumes
, with subfolders for each docker volume, and_data
subfolders therein for the actual data, e.g.docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh
/ # exit
gmbulaba commentedon Oct 15, 2020
Hello
am facing a other issue when trying : screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
i have a message saying No such file or directory and [screen is terminating] after
here is the way am running my docker :
docker run -tid --name web -p 8080:80 --mount source=myvolume, target=/usr/share/nginx/html nginx:latest
I don't get why tty is not found. Can someone help me ?
fireinrain commentedon Oct 27, 2020
I also get this issue.

computer: mac
os version 10.14.6
dokcer for mac version 2.4.0.0(48506)
when i want to attach into the docker vm, i run the command mentioned in this page. i get the same error.
it warn me that screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty permission denied.
in the early version docker for mac desktop, it can work.
is it a bug, hope to fix, thanks
deepio-oc commentedon Nov 14, 2020
I also don't have tty file.
sangshuduo commentedon Nov 17, 2020
I don't have the tty file too. I'm using latest docker desktop 2.5.0.1 for mac.
Skyler1017 commentedon Nov 18, 2020
I don't have the tty file too.
29 remaining items