List of questions
Related questions
Question 302 - XK0-005 discussion
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:
sql
FROM node:9-alpine
WORKDIR /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? (Select two).
A.
docker build -t Test-Container
B.
docker tag Test-Container
C.
docker inspect Test-Container
D.
docker run -p 5000:80 Test-Container
E.
docker push Test-Container
F.
docker run -p 80:9000 Test-Container
Your answer:
0 comments
Sorted by
Leave a comment first