Rate This Document
Findability
Accuracy
Completeness
Readability

Metadata Information

  1. Use a remote terminal to log in to the server where the instruction stream cloud phone is deployed as the instruction stream cloud phone O&M user (for example, root).
  2. Run the following command to switch to the root user:
    # su - root
  3. Run the following command to query the container ID:
    # docker ps -a
  4. You can run the inspect command provided by Docker to view container details. In the following command, {kbox_id} indicates the ID of the started instance.
    1
    # docker inspect kbox_${kbox_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}}' kbox_${index}
    

    The following figure shows the command output.