Giter Club home page Giter Club logo

Comments (4)

nickjj avatar nickjj commented on May 23, 2024

Hi,

Are you using Docker Desktop or did you install Docker straight up within your Ubuntu WSL 2 instance?

That error usually happens when Docker's buildkit isn't enabled but Docker Desktop should enable it by default. It's been available from Docker for years but I don't think it's enabled by default with native Linux.

If you run DOCKER_BUILDKIT=1 docker-compose build does that fix it?

If so and you're not using Docker Desktop you can goto /etc/docker/daemon.json and add { "features": { "buildkit": true } } then restart the Docker daemon. That'll always enable buildkit without needing to supply the env variable.

from docker-django-example.

cjonesyyc avatar cjonesyyc commented on May 23, 2024

Hi,

In Windows where it was working it was with Docker Desktop.

On the Ubuntu 20.04 VM I tried setting the env variable and it didn't work, seems like buildkit was missing in the install. I re-created the VM and install docker/docker-compose following official docker instructions and now that env variable works.

Thank you!

from docker-django-example.

nickjj avatar nickjj commented on May 23, 2024

No problem.

Did you enable it in the json config to avoid needing to set the env var every time?

from docker-django-example.

cjonesyyc avatar cjonesyyc commented on May 23, 2024

Just tried that now, the file didn't exist on my machine so I created it and put the mentioned line and it's working without setting it every time. Much appreciated, thanks for the support and great project.

from docker-django-example.

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.