Complete the command to view logs of a container named 'webapp'.
docker logs [1]The docker logs command followed by the container name shows the logs of that container.
Complete the command to follow the logs of a container named 'dbserver' in real-time.
docker logs [1] dbserverThe -f option makes docker logs follow the log output in real-time.
Fix the error in the command to show the last 50 lines of logs for container 'api'.
docker logs --tail=[1] apiThe --tail option expects a number indicating how many lines to show. Here, 50 is correct.
Fill both blanks to limit logs to last 20 lines and follow new logs for container 'cache'.
docker logs [1] 20 [2] cache
--since instead of -f to follow logs.Use --tail 20 to show last 20 lines and -f to follow logs live.
Fill all three blanks to show logs since 10 minutes ago, limit to 100 lines, and follow logs for container 'frontend'.
docker logs [1] 10m [2] 100 [3] frontend
--timestamps instead of -f to follow logs.--since 10m shows logs from last 10 minutes, --tail 100 limits to 100 lines, and -f follows logs live.