What is `--network none` used for?

BeginnerConceptNetworking
Answer

The container gets only a loopback interface. Use it for batch jobs that must not talk to the network, for sandboxing untrusted processing, or to build custom networking by hand (e.g., attach with ip link and nsenter).

All Docker questions Roadmap: Docker & containers

More on Networking