XK0-005 Scripting, Containers and Automation • Set 2
XK0-005 Scripting, Containers and Automation Practice Test 2 — 15 questions with explanations. Free, no signup.
After building and running the container as shown in the exhibit, the administrator tries to access http://localhost:8080 but receives a connection refused error. What is the most likely cause?
Refer to the exhibit. ``` $ cat Dockerfile FROM ubuntu:22.04 RUN apt-get update && apt-get install -y nginx COPY index.html /var/www/html/ EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] $ docker build -t webapp . $ docker run -d -p 8080:80 webapp ```