Docker Concepts
Container writable layer
Container-local filesystem changes outlive a stop but not container removal. A new container starts from its image rather than inheriting a previous container’s unmounted files. Example prints the expected file in a disposable container; it does not persist after --rm. Confirm the path is not covered by a mount and distinguish successful execution from merely observing a stopped container.
Formal Syntax & Structure
docker syntaxdocker
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]Working Example
Example Snippetdocker
docker run --rm --pull=never --network none busybox:1.37 sh -c 'printf note > /tmp/note; cat /tmp/note'