1e41f4b71Sopenharmony_ci# OpenHarmony Docker Image 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci### Docker Image 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciThis document provides guidance on building the Docker image for mini- and small-system devices. 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciThe Docker image of OpenHarmony is hosted on [HUAWEI Cloud SWR](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fswr%2F%3Fregion%3Dcn-south-1%26cloud_route_state%3D%2Fapp%2Fwarehouse%2FwarehouseMangeDetail%2Fgoldensir%2Fopenharmony-docker%2Fopenharmony-docker%3Ftype%3DownImage&locale=en-us#/login). Using the Docker image will help simplify environment configurations needed for the building. The following table lists container-based options needed for building in the standalone [Docker environment](https://gitee.com/openharmony/docs/blob/master/en/device-dev/get-code/gettools-acquire.md). 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci| Docker Image Repository | Tag | Description | 10e41f4b71Sopenharmony_ci| :----------------------------------------------------------- | :------ | :-------------------------------------------------------- | 11e41f4b71Sopenharmony_ci| `swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker` | `1.0.0` | The OpenHarmony build environment has been pre-installed. | 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci### Usage 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci After downloading the OpenHarmony code, perform the steps below to access the Docker environment. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci1. Obtain the Docker image. 18e41f4b71Sopenharmony_ci ``` 19e41f4b71Sopenharmony_ci docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0 20e41f4b71Sopenharmony_ci ``` 21e41f4b71Sopenharmony_ci2. Go to the root directory of OpenHarmony code and run the following command to access the Docker build environment: 22e41f4b71Sopenharmony_ci ``` 23e41f4b71Sopenharmony_ci docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:1.0.0 24e41f4b71Sopenharmony_ci ``` 25e41f4b71Sopenharmony_ci3. Run the following script to start building for different platforms. 26e41f4b71Sopenharmony_ci ``` 27e41f4b71Sopenharmony_ci hb set # Press the Up or Down key to select the platform to build on, then press Enter. 28e41f4b71Sopenharmony_ci hb build -f # Start building. 29e41f4b71Sopenharmony_ci ``` 30