From 387628ada6b5efa58d04de0605c281aca352edcc Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Aug 2025 18:57:20 +0400 Subject: [PATCH] DOC: update the description for the 'docker build' command --- doc/source/development/contributing_environment.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index c09e8595f0241..ee0cc230f8970 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -176,6 +176,16 @@ Build the Docker image:: # Build the image docker build -t pandas-dev . + +**Platform Specification** + +If you encounter compatibility issues during the build process (especially on Apple Silicon Macs), specify the target platform:: + + # Highlight your platform in the docker build command for better compatibility + docker build --platform=linux/amd64 -t pandas-dev . + +The --platform flag makes the build to use the specified architecture (in this case x86_64), which provides better platform compatibility. + Run Container:: # Run a container and bind your local repo to the container