Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

docker run - - detach - v / workspaces / OSProject / webpage: / usr / local / apache 2 / htdocs / - p

docker run --detach -v /workspaces/OSProject/webpage:/usr/local/apache2/htdocs/-p 8081:80 httpd
Unable to find image 'httpd:latest' locally
latest: Pulling from library/httpd
2f44b7a888fa: Pull complete
376771e8483c: Pull complete
4f4fb700ef54: Pull complete
6a6627aecff0: Pull complete
152f4888b550: Pull complete
fd0579f22872: Pull complete
Digest: sha256:ba846154ade27292d216cce2d21f1c7e589f3b66a4a643bff0cdd348efd17aa3
Status: Downloaded newer image for httpd:latest
0b71ed91ef7f09f50db4e71bf3adc8c7cda91e66846f06d66daecdf12892e3a2
but the port still wont shown

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions