Docker - Security
You want to run a container with a read-only filesystem but allow writing only to
/app/logs. Which command correctly achieves this?/app/logs. Which command correctly achieves this?/app/logs makes that folder writable.--read-only plus a volume mount for writable logs. docker run --read-only --tmpfs /app/logs alpine uses tmpfs which is temporary and not persistent. docker run -v /host/logs:/app/logs alpine lacks --read-only. docker run --read-only alpine has no writable folder.--read-only = writable folder [OK]--read-only for writable folders [OK]--read-only flag15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions