Display the Log Files
Learn how to access and display the log files.
Get the name of the container where the tests were executed
Use the command docker ps -a
:
docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS NAMES03efc6403f78 tests "bash command.sh" 7 mins ago Exited loving_payne
The output shows that the container exited after the tests finished.
Container Id | Image | Status | Names |
---|---|---|---|
03efc6403f78 | tests | Exited | loving_payne |
Docker assigns randomly generated
Container-Id
andName
to each container. Every time you run a container, the container will randomly generate an id and name for it.
It is also possible to define the container name ...