Building an Image
- Pull and import the base Python image.
You need to be able to access Docker Hub to pull images and use pip to pull dependencies.
- Pull the python:3.9.9-slim image.
docker pull python:3.9.9-slim
- View the image list.
docker images
If the pull is successful, the following information is displayed:

- Pull the python:3.9.9-slim image.
- Download the WAAS Booster open source package. For details, see OS and Software Requirements.
If you choose to pull the image, run the following command:
git clone -b waasbooster https://gitcode.com/boostkit/waas.git
- Build the image.
- Go to the waas folder.
cd waas
- Build the image.
docker build -t waasbooster:1.0.0 .
In the command, waasbooster is the name of the built image, and 1.0.0 is the image tag.
Note that you need to use pip to pull dependencies. If you need to use the pip proxy, run the following command to specify a proxy server:
docker build --build-arg PIP_PROXY=http://username:password@http.example.com:8080 -t waasbooster:1.0.0 .
If a specific pip image source is available, run the following command to specify the pip image source:docker build \ --build-arg PIP_MIRROR=http://mirror.example.com/pypi/simple \ --build-arg PIP_TRUST_HOST=http://mirror.example.com \ -t waasbooster:1.0.0 .
- View the image list.
docker images
If the information similar to the following is displayed, the image is successfully built.

Import the built image to the image repository that can be accessed by service nodes, or manually import the image to each service node.
- Go to the waas folder.
- (Optional) Import the image into the containerd environment.If the target cluster is implemented based on containerd, you need to export the waasbooster image built by Docker and import the image into the containerd environment.
- Run the following command to export the container image and name it waasbooster.tar:
docker save -o waasbooster.tar waasbooster:1.0.0
- Run the following command to import waasbooster.tar:
ctr -n k8s.io image import waasbooster.tar
- Run the following command to check whether the image is successfully imported:
ctr -n k8s.io images list
If the information similar to the following is displayed, the image is successfully imported.

- Run the following command to export the container image and name it waasbooster.tar: