我要评分
获取效率
正确性
完整性
易理解

Metadata Information

  1. Use an SSH tool such as Xshell to log in to the server where the video stream cloud phone is deployed as the cloud phone O&M user (for example, root).
  2. Switch to the root user.
    1
    su - root
    
  3. Run the following command to query the container ID:
    1
    docker ps -a
    
  4. Run the inspect command provided by Docker to view container details. In the following command, {android_id} indicates the ID of the started instance.
    1
    docker inspect android_${android_id}
    
    After the preceding command is executed, all metadata information of the container is returned in JSON array format. In most cases, if you only need to obtain a specific piece of data about the container, you can extract the required data from the JSON data. For example, to obtain the IP address of the container, run the following command:
    1
    docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' android_${index}
    

    Example:

    docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' android_11

    The command output is as follows:

    172.17.0.4