Docker and CI/CD · Junior · Question 10 of 75

What does docker run -p 8080:3000 my-app mean?

Explanation

The format is host:container. Open http://localhost:8080 and the request reaches the app listening on 3000 inside the container.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 10

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz