none: Disables networking entirely. The container gets only a loopback interface — fully isolated. The none network mode gives a container no network access at all, apart from its own loopback interface. It cannot reach the internet or other containers, and nothing can reach it. That is useful for tasks that only process data: converting files, running untrusted code in a sandbox, or batch jobs that read input from a volume and write results back.
It is a simple, strong form of isolation. If a tool or a dependency is compromised, it cannot send data anywhere or download anything. When you design a job that does not need the network, running it with --network none costs nothing and removes a whole category of risk. Remember that the job then also cannot reach a database or external API, so check its needs first.
Use this skill when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a database or cache dependency, or running services without host-level installs. Covers Dockerfile, compose.yaml, and .dockerignore creation with Docker best practices.
Use this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.
Use this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.