ExamGecko
Question list
Search
Search

Question 97 - 200-901 discussion

Report
Export

A local Docker alpine image has been created with an image ID of a391665405fe and tagged as “latest”. Which command creates a running container based on the tagged image, with the container port 8080 bound to port 80 on the host?

A.

docker build -p 8080:80 alpine:latest

Answers
A.

docker build -p 8080:80 alpine:latest

B.

docker exec -p 8080:80 alpine:latest

Answers
B.

docker exec -p 8080:80 alpine:latest

C.

docker start -p 8080:80 alpine:latest

Answers
C.

docker start -p 8080:80 alpine:latest

D.

docker run -p 8080:80 alpine:latest

Answers
D.

docker run -p 8080:80 alpine:latest

Suggested answer: D
asked 07/10/2024
Jeffrey VanBemmel
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first