Git Product home page Git Product logo

Comments (3)

shivakharbanda avatar shivakharbanda commented on June 1, 2024

Also please update the documentation. its really hard to use this project as a lib in a seperate project. there is 0 information on anything. the docs are basically Useless

from taskweaver.

shivakharbanda avatar shivakharbanda commented on June 1, 2024

okay so solution was simple

i updated my docker compose file

version: '3.8'

services:
  web:
    build: .
    command: poetry run python manage.py runserver 0.0.0.0:8080
    volumes:
      - .:/app
      - /var/run/docker.sock:/var/run/docker.sock  # Mount the Docker socket here
    ports:
      - "8080:8080"
    env_file:
      - .env
    depends_on:
      - redis
    stdin_open: true
    tty: true

  redis:
    image: "redis:alpine"
    ports:
      - "6379:6379"
    volumes:
      - redis_data:/data

volumes:
  redis_data:

had to add the following line

  • /var/run/docker.sock:/var/run/docker.sock under volumes:

This modification will allow your application to interact with the host's Docker daemon. which solves my problem

or you can just add this to your task weaver config
"execution_service.kernel_mode": "local"
as they have switched to container mode by default.

from taskweaver.

liqul avatar liqul commented on June 1, 2024

This is caused by connecting to docker-based executor inside a docker container. Your solution is a typical way of running docker in docker.

from taskweaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.