Mount Configuration Read-Only With Compose configs
Labs have no container engine, so nothing is started: your files are checked with docker-compose config.
The web service of image-resizer gets its nginx configuration from two writable bind mounts. A compromised container could rewrite the host's files, and after someone edited site.conf with an editor that saves to a new file, nginx kept serving the old version.
In /home/student/projects/image-resizer/compose.yaml:
nginx_conf from the file ./nginx/nginx.conf and site_conf from ./nginx/site.conf,web at the same paths as before (/etc/nginx/nginx.conf and /etc/nginx/conf.d/default.conf), with mode 0444,web has no volumes left. Keep its image and port.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Part of Docker Fundamentals. Next step: Variables in Compose, the Right Way
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.