Open boonkerz opened 1 year ago
seems documentation is few commits behind. you should be able to fix this by setting an env var DOCKER_PLATFORM
to whatever platform you want to build on. this might either be linux/amd64
or linux/arm64
.
e.g.
$ DOCKER_PLATFORM="linux/amd64" docker-compose build sandbox
$ export DOCKER_PLATFORM="linux/amd64"
$ docker-compose build sandbox
is this still active?
i can not build my self
➜ php-alpine git:(master) ✗ ./build.sh /usr/bin/env: ‘bash\r’: No such file or directory
➜ php-alpine git:(master) ✗ docker-compose build sandbox WARN[0000] The "DOCKER_PLATFORM" variable is not set. Defaulting to a blank string. WARN[0000] The "DOCKER_PLATFORM" variable is not set. Defaulting to a blank string. WARN[0000] The "DOCKER_PLATFORM" variable is not set. Defaulting to a blank string. WARN[0000] The "DOCKERPLATFORM" variable is not set. Defaulting to a blank string. [+] Building 0.1s (2/2) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9-]+$": invalid argument