Retrieve Logs From the Command Line
Procedure
- Use ssh to connect to the IP address of your device. The credentials are root/root.
$ ssh root@x.x.x.x $ password: root - Use the docker ps command to view the Docker containers running on the device.
$ docker ps - From the list of running containers, copy the container name.
- Use the journalctl command with a
CONTAINER_NAMEfilter to retrieve the logs.$ journalctl CONTAINER_NAME=your-container-name - If you would like to follow a real time list of your logs as they are generated, add a
-fparameter.$ journalctl CONTAINER_NAME=your-container-name -f