Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a Kbox Image

  1. Obtain the Kbox container startup dependency components android.tar and Kbox-AOSP11.zip by referring to Deploying the Basic Environment for the Kbox Container, and upload them to the /home/kbox_video directory on the server. (This directory is used as an example. You can customize a directory as required.)
  2. Decompress the Kbox-AOSP11.zip package, extract the android11_kbox.sh, base_box.sh, and bin 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.
    1
    2
    3
    4
    5
    6
    7
    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/
    cp -pr Kbox-AOSP11/deploy_scripts/bin /home/kbox_video/
    chmod 755 /home/kbox_video/base_box.sh
    chmod 755 /home/kbox_video/android11_kbox.sh
    chmod 755 /home/kbox_video/bin/*
    
  3. Create a Kbox image. Generally, the image name is kbox:latest. You can customize an image name in the format of {image_name}:{tag}.
    1
    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.

  4. Check whether the Kbox image (kbox:latest) is successfully created.
    1
    docker images
    

    If the following information is displayed, the image is successfully created.

    1
    2
    REPOSITORY    TAG       IMAGE ID        CREATED          SIZE
    kbox          latest    d1f5cfd2e722    6 seconds ago    2.09GB