Skip to content

replace docker socket networking hack #3

@lukemarsden

Description

@lukemarsden

indeed, you have what you need in the Python API to remove your socat for the demo:

    with dagger.Connection(dagger.Config(log_output=sys.stderr)) as client:
        # get socket id from the host
        socket = client.host().unix_socket("/var/run/docker.sock")
        # mount the socket into the container
        container = client.container().with_unix_socket("/var/run/docker.sock", socket)
  • remove reference to socat in the readme

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