nerdexam
Docker

DCA · Question #45

Which of the following commands starts a Redis container and configures it to always restart unless it is explicitly stopped or Docker is restarted?

Sign in or unlock DCA to reveal the answer and full explanation for question #45. The question stem and answer options stay visible for context.

Submitted by asante_acc· Apr 18, 2026Installation and Configuration

Question

Which of the following commands starts a Redis container and configures it to always restart unless it is explicitly stopped or Docker is restarted?

Options

  • A'docker run -d --restart-policy unless-stopped redis'
  • B'docker run -d --restart omit-stopped redis'
  • C'docker run -d --restart unless-stopped redis'
  • D'docker run -d --failure omit-stopped redis'

Unlock DCA to see the answer

You've previewed enough free DCA questions. Unlock DCA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#docker run#Restart policies#Container lifecycle#Container management
Full DCA Practice