Where to start First steps track · 15 stages
Linux Labs

Containers: Docker and compose

Quiz: images and data

Question 9 of 10
Leave the quiz

Read the output

The ~/report directory is attached to nginx:alpine in place of /usr/share/nginx/html. What will you do so that the report opens?

$ curl -si localhost:8081 | head -1
HTTP/1.1 403 Forbidden
$ sudo docker logs report 2>&1 | grep -o 'open().*denied)'
open() "/usr/share/nginx/html/index.html" failed (13: Permission denied)
$ ls -l ~/report/index.html
-rw------- 1 student student 20 Oct 20 14:42 /home/student/report/index.html
Back A–D or ↵ Sign in to answer
Loading…