ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 98 - DCA discussion

Report
Export

You created a new service named 'http' and discover it is not registering as healthy. Will this command enable you to view the list of historical tasks for this service?

Solution: 'docker service ps http'

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

= The command 'docker service ps http' will list the tasks that are running as part of the 'http' service, as well as the task history1. The task history shows the previous states of the tasks, such as running, shutdown, rejected, etc.This can help you troubleshoot why the service is not registering as healthy, by looking at the current state, error, and ports of each task1.Reference:

docker service ps | Docker Docs

Docker Certified Associate Guide

DCA Prep Guide

asked 08/11/2024
MM rahn
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first