ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 347 - 350-901 discussion

Report
Export

A developer has created a local Docker alpine image that has the image ID 'dockapp432195596ffr' and tagged as ‘new’. Which command creates a running container based on the tagged image, with the container port 80 bound to port 8080 on the host?

A.

docker build -p 8080:80 alpine new

Answers
A.

docker build -p 8080:80 alpine new

B.

docker exec -p 808080 alpine new

Answers
B.

docker exec -p 808080 alpine new

C.

docker start -p 808080 alpine new

Answers
C.

docker start -p 808080 alpine new

D.

docker run -p 8080.80 alpine.now

Answers
D.

docker run -p 8080.80 alpine.now

Suggested answer: D

Explanation:

This command will create a running container based on the specified image and will bind the container port 80 to port 8080 on the host.

asked 10/10/2024
Adrian Chirtoc
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first