这是indexloc提供的服务,不要输入任何密码
Skip to content

Timeouts with Docker TTY #136

@caarlos0

Description

@caarlos0

Not sure if it is intended or not, but if you run a docker container with --tty, many queries termenv does timeout.

Minimum reproducible:

// main.go
package main

import (
	"fmt"

	"github.com/muesli/termenv"
)

func main() {
	fmt.Println("BG", termenv.BackgroundColor())
}
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o a .
docker run --rm --tty -v $PWD:/tmp alpine /tmp/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions