Everyday Docker commands for debugging tests
QuizEasy-MediumAsked in: Capgemini, Swiggy
Which commands are matched correctly to the task? Choose all that apply.
- docker ps: list running containers (add -a for stopped ones)
- docker logs NAME: show what a container printed, for example the Selenium server log
- docker exec -it NAME sh: open a shell inside a running container
- docker build NAME: start a stopped container
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.