Metadata Information
- 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).
- Switch to the root user.
1su - root
- Run the following command to query the container ID:
1docker ps -a
- Run the inspect command provided by Docker to view container details. In the following command, {android_id} indicates the ID of the started instance.
1docker 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:1docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' android_${index}
Example:
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' android_11The command output is as follows:
172.17.0.4
Parent topic: Querying Docker Container Logs