Safe
docker run --rm -v "$PWD":/work:ro -w /work node:20-alpine npm run lintcross-platform · dockerfile · Nightmare
Lints the current project inside a throwaway container. Mounting your working directory into a container deserves scrutiny, but :ro makes the mount read-only and --rm deletes the container afterwards, so nothing can be written back or left behind.
Think you can spot these under time pressure?
Start TrainingMore Containers
docker run --privileged -v /:/host -it alpineAdvanceddocker exec -it web shExpertdocker run -v /var/run/docker.sock:/var/run/docker.sock -it alpineAdvanceddocker run -d --restart=always -v /:/mnt alpine sh -c 'sleep infinity'Expertdocker exec app-1 cat /app/logs/startup.logIntermediatesudo docker run --privileged -v /:/host node:20 node /host/srv/app/fix.jsAdvanced