Skip to content

🐞 terminal fails on Dagger windows distribution #9096

@pjmagee

Description

@pjmagee

What is the issue?

It's been a long while since I have used the terminal feature, but I know it did work for sure around the v0.10. There's a chance a bug was introduced a while back and I can't give a good timeline of when something may have changed, sorry.

The terminal feature is not working on the windows binary and I think it's easy to replicate with just a simple container from and terminal chained command.

I noticed something odd, after trying to debug some adhoc stuff I was learning with C++ build environments in docker, so i thought i'd use Dagger for this. I came across this error and thought maybe it's the docker image I was using, tried a few things, got it working in WSL but now I realised i think the problem is more general and not specific to an image, example below is the basic ubuntu image and that doesn't seem to work.

Dagger version

dagger v0.14.0 (registry.dagger.io/engine:v0.14.0) windows/amd64

Steps to reproduce

dagger core container from --address ubuntu terminal

Swap the image with anything, alpine etc and I'm confident the same result with occur, you are not able to get into a terminal from the dagger windows client binary

Log output

dagger core container from --address ubuntu terminal                            PS  12:30:12 
✔ connect 0.2s
✔ inspecting core types 0.2s
✔ parsing command line arguments 0.0s
✔ container: Container! 0.0s
✔ Container.from(address: "ubuntu"): Container! 0.4s
✘ Container.terminal: Container! 0.7s
! failed to forward exit code: failed to close terminal: EOF
┃ dagger / $
  ✔ start sh 0.7s

Full trace at https://dagger.cloud/mageep/traces/4756d309d0c41f6979d25cff3a6f02eb

Error: response from query: input: container.from.terminal resolve: failed to forward exit code: failed to close terminal: EOF               
Run 'dagger core container from terminal --help' for usage.

Trying on my WSL, with the exact same command, it worked.

mageep@PATRICK-PC:~$ dagger version
dagger v0.14.0 (registry.dagger.io/engine:v0.14.0) linux/amd64
mageep@PATRICK-PC:~$ dagger core container from --address ubuntu terminal
● Attaching terminal:
    container: Container!
    Container.from(address: "docker.io/library/ubuntu:latest@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab"): Container!

dagger / $

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions