The "docker ps" command shows which containers are running. There should be two containers running from the Azure IoT Edge team plus the containers you configured modules for. If they are not running troubleshoot by:
- Run the "iotedgectl start" command to ensure the Edge runtime is started.
- Run "docker ps" to see if the containers are running.
- Run "docker ps --all" to find all the relevant container id's.
- View the logs of each container with the "docker logs <container id>" command. I find it helpful to add "--tail 50" to reduce the output to only the last 50 lines in the log.
- If microsoft/azureiotedge-hub:1.0-preview or microsoft/azureiotedge-agent:1.0-preview containers logged an exception then:
- In PowerShell run "Invoke-Expression (Invoke-WebRequest -useb https://aka.ms/iotedgewin)" to validate your prerequisites.
- Try setting up the device again:
- Run "iotedgectl uninstall" to uninstall the existing containers.
- Run "iotedgectl setup..." to install the containers.
- Run "iotedgectl login..." to provide the container registry credentials.
- Run "iotedgectl start".
- View the logs of the new containers to see what happened.
One tip is that the logs show which docker commands were executed but not the raw output. To see what happened, copy the command out of the log and run it from the command line.