XK0-005 · Question #1723
XK0-005 Question #1723: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1723. The question stem and answer options stay visible for context.
Question
A Linux administrator needs to expose port 9000 for a container to listen during runtime. The Linux administrator creates a Dockerfile with the following entries. # Test-Container FROM node:9-alpine WORDDIR /usr/src/app COPY package*.json ./ RUN npm install copy . . EXPOSE 9000 CMD ['npm", "start"] Which of the following commands should the administrator use to accomplish this task? (Choose two).
Options
- Adocker build -t Test-Container
- Bdocker tag Test-Container
- Cdocker inspect Test-Container
- Ddocker run -p 5000:80 Test-Container
- Edocker push Test-Container
- Fdocker run -p 80:9000 Test-Container
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 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.