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

still active? #164

Open
boonkerz opened this issue Sep 19, 2022 · 1 comment
Open

still active? #164

boonkerz opened this issue Sep 19, 2022 · 1 comment

Comments

@boonkerz
Copy link

boonkerz commented Sep 19, 2022

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 "DOCKER_PLATFORM" 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

@tobias-trozowski
Copy link
Contributor

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

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

2 participants