Skip to content

interactive docker run in osx #46

@hernanm92

Description

@hernanm92

When I run the example from the README file:

import docker
import dockerpty

client = docker.Client()
container = client.create_container(
    image='busybox:latest',
    stdin_open=True,
    tty=True,
    command='/bin/sh',
)

dockerpty.start(client, container)

I'm getting an error when the sh terminal is open:

/ # [Errno 32] Broken pipe

if I run the equivalent docker command it works:

docker run -ti busybox:latest /bin/sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions