Docker - Security
What will be the output of this command?
docker run --read-only alpine sh -c "touch /file && echo success || echo fail"docker run --read-only alpine sh -c "touch /file && echo success || echo fail"touch /file command tries to create a file in the root filesystem, which is read-only, so it fails.touch fails, the shell runs the command after ||, printing "fail".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions