0 votes
in Docker by

Which command is used to view the logs of a running Docker container?

a) docker logs CONTAINER_ID/NAME

b) docker show-logs CONTAINER_ID/NAME

c) docker view CONTAINER_ID/NAME

d) docker inspect CONTAINER_ID/NAME

Click to View Answer and Explanation

1 Answer

0 votes
by
a) docker logs CONTAINER_ID/NAME

Explanation:

The docker logs command allows you to view the logs of a running container.
...