Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace docker socket networking hack #3

Open
1 task
lukemarsden opened this issue Jun 26, 2023 · 0 comments
Open
1 task

replace docker socket networking hack #3

lukemarsden opened this issue Jun 26, 2023 · 0 comments

Comments

@lukemarsden
Copy link
Owner

lukemarsden commented Jun 26, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant