bazelbuild / bazelbuild/bazel

[bazel.build] Problem with /install/docker-container

Open
#18,951 4 comments 0 reactions 0 assignees View on GitHub
P2 team-Documentation team-OSS type: documentation (cleanup)
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Page link:

https://bazel.build/install/docker-container

### Problem description (include actual vs expected text, if applicable):

I was following the instructions to build the project via bazel container with directory mounting:

`
docker docker run \
-e USER="$(id -u)" \
-u="$(id -u)" \
-v ./src/workspace:/src/workspace \
-v /tmp/build_output:/tmp/build_output \
-w /src/workspace \
gcr.io/bazel-public/bazel:latest \
--output_user_root=/tmp/build_output \
build //absl/...
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
FATAL: mkdir('/tmp/build_output'): (error: 13): Permission denied
`
The host machine was Apple M2 MBP running Venture 13.4.1

### Where do you see this issue? (include link to specific section of the page, if applicable)

https://bazel.build/install/docker-container

### Any other information you'd like to share?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the instructions at https://bazel.build/install/docker-container and reproduce the shown Docker command on an Apple M2 host. Investigate the reported /tmp/build_output permission failure and platform warning; the documentation is done when the container build steps work for the stated setup or clearly explain the required adjustments.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.