Retrieve Logs From the Command Line

Procedure

  1. Use ssh to connect to the IP address of your device. The credentials are root/root.
    $ ssh [email protected]
    $ password: root
  2. Use the docker ps command to view the Docker containers running on the device.
    $ docker ps
  3. From the list of running containers, copy the container name.
  4. Use the journalctl command with a CONTAINER_NAME filter to retrieve the logs.
    $ journalctl CONTAINER_NAME=your-container-name
  5. If you would like to follow a real time list of your logs as they are generated, add a -f parameter.
    $ journalctl CONTAINER_NAME=your-container-name -f