QuestionQ65

Introduction to DevSecOps

Brady Coleman, a senior DevSecOps engineer at CloudVac Security Private Ltd., has created a new container named “eccbrad” from the centos:7 image by using the command docker run -i -t --name geeklab centos:7 /bin/bash.

Brady now wants to install the httpd package within the eccbrad container. Which command should Brady use to install the httpd package inside the container?

  • A yum install httpd
  • B sudo install-httpd
  • C sudo install httpd
  • D yum install-httpd
Explanation

CentOS 7 uses the yum package manager, and the Apache HTTP Server package is named httpd. The valid installation command is yum install httpd.

Community Discussion

No comments yet. Be the first to start the discussion!