Prerequisites
Install Docker
You need Docker installed on your system:
- Linux/macOS: Docker Desktop
- Windows: Docker Desktop for Windows
Start NativeLink
What’s running?
Thebasic_cas.json5 configuration provides:
Content Addressable Storage (CAS)
Stores build artifacts using content-based addressing
Action Cache (AC)
Caches action results for faster incremental builds
Remote Execution
Executes build actions on local workers
Scheduler
Matches actions to available workers
/tmp/nativelink/ by default.
Next steps
Configure your build tool
Connect Bazel, Buck2, or other build tools
Customize the configuration
Learn about configuration options
Deploy to production
Set up a production deployment
Explore other installation methods
Try Nix or build from source
Troubleshooting
Port 50051 is already in use
Port 50051 is already in use
Change the port mapping in the docker run command:Then configure your build tool to use port 50052.
Permission denied error
Permission denied error
On Linux, you may need to run Docker with sudo or add your user to the docker group:
Container fails to start
Container fails to start
Check the Docker logs:Common issues:
- Invalid JSON5 in config file
- Missing volume mount
- Port conflict