View container logs

更新时间:
复制 MD 格式

Container logs are the standard output of a container. You can view container logs in the console to troubleshoot issues, such as when a container fails to start.

Procedure

  1. Go to the Simple Container Service page in the Simple Application Server console.

  2. On the Simple Container Service page, click the ID of the target instance.

    If you have multiple instances, you can find a specific one by entering its ID in the search box.

  3. On the Overview tab, find the target container group and click View Logs in its Actions column.

  4. In the View Logs dialog box, find the target container and click View.

  5. The container logs are displayed in the dialog box.

    /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
    /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
    /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
    10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
    10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
    /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
    /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
    /docker-entrypoint.sh: Configuration complete; ready for start up
    2023/12/18 06:43:02 [notice] 113#113: using the "epoll" event method
    2023/12/18 06:43:02 [notice] 113#113: nginx/1.21.5
    2023/12/18 06:43:02 [notice] 113#113: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
    2023/12/18 06:43:02 [notice] 113#113: OS: Linux 4.19.91-20220519040629.182dd72.a17.x86_64
    2023/12/18 06:43:02 [notice] 113#113: getrlimit(RLIMIT_NOFILE): 1048576:1048576
    2023/12/18 06:43:02 [notice] 113#113: start worker processes
    2023/12/18 06:43:02 [notice] 113#113: start worker process 138
    2023/12/18 06:43:02 [notice] 113#113: start worker process 139
    10.17.12.19 - - [18/Dec/2023:06:43:21 +0000] "HEAD / HTTP/1.0" 200 0 "-" "-" "-"
    10.17.12.19 - - [18/Dec/2023:06:43:28 +0000] "HEAD / HTTP/1.0" 200 0 "-" "-" "-"
    10.17.12.19 - - [18/Dec/2023:06:43:36 +0000] "HEAD / HTTP/1.0" 200 0 "-" "-" "-"
    10.17.12.19 - - [18/Dec/2023:06:43:43 +0000] "HEAD / HTTP/1.0" 200 0 "-" "-" "-"
    10.17.12.19 - - [18/Dec/2023:06:43:51 +0000] "HEAD / HTTP/1.0" 200 0 "-" "-" "-"