Creating a Kbox Image
- Upload the Kbox container startup dependency components android.tar and Kbox-AOSP11.zip obtained in Deploying the Basic Environment for the Kbox Container to the /home/kbox_video directory on the server. (This directory is used as an example. You can customize a directory as required.)
- Decompress the Kbox-AOSP11.zip package, extract the android11_kbox.sh and base_box.sh files in deploy_scripts to the /home/kbox_video directory, and grant permissions on the files. Ensure that the file owner has the read, write, and execute permissions while users in the owner group and other users have only the read and execute permissions.
#unzip Kbox-AOSP11.zip #cp Kbox-AOSP11/deploy_scripts/base_box.sh /home/kbox_video/ #cp Kbox-AOSP11/deploy_scripts/android11_kbox.sh /home/kbox_video/ #chmod 755 /home/kbox_video/base_box.sh #chmod 755 /home/kbox_video/android11_kbox.sh
- Create a Kbox image. Generally, the image name is kbox:latest. You can customize an image name in the format of {image_name}:{tag}.
#docker import android.tar kbox:latest
The image name can contain only digits and lowercase letters, and must start with a lowercase letter. The tag can contain only digits and letters.
- Check whether the Kbox image (kbox:latest) is successfully created.
#docker images
If the following information is displayed, the image is successfully created.

Parent topic: Creating Images