dask / dask-docker

Docker images for dask

Home Page:https://hub.docker.com/u/daskdev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Compose fails build on Win 10 and macOS

daddydrac opened this issue · comments

docker-compose build base-notebook
Building base-notebook
#1 [internal] load git source github.com/jupyter/docker-stacks.git#master:base-notebook

#1 ERROR: subdir not supported yet
------
 > [internal] load git source github.com/jupyter/docker-stacks.git#master:base-notebook:
------
failed to solve with frontend dockerfile.v0: failed to read dockerfile: failed to load cache key: subdir not supported yet
Service 'base-notebook' failed to build : Build failed

Could you please share your Docker version? Typically we support docker-ce on Linux and we use Ubuntu in CI.

It seems that specifying git subdirectories is not supported in all Docker build modes (buildkit).

docker/for-linux#1102

I met the same Docker version 20.10.6, build 370c289

Could you please share your Docker version? Typically we support docker-ce on Linux and we use Ubuntu in CI.

It seems that specifying git subdirectories is not supported in all Docker build modes (buildkit).

docker/for-linux#1102

how to solve this temporarily?

WeChatWorkScreenshot_fd614990-9048-4b35-97d4-77d4817cc4ff

I clone the jupyter repo manually but is this build cost is normal?

MacOS Bigsur

There is an existing problem with building these images using buildkit. I am wondering if buildkit became the default in Windows/macOS lately?

I am curious why you are building the images. We build these for you and publish them to DockerHub. Are you just trying to start a Dask cluster with docker? Or are you specifically trying to build the images yourself?

I wonder if the confusion here is the intent of the docker compose file.

This repo is just for building images. The docker compose file is set up for building them every time.

I wonder if we need to shuffle things round a bit here and have two files, one for building and one for using.

#171 separated the build stack from the example stack which should solve this issue.