Running with networking disabled
To run a container with networking disabled:
docker run --rm -dit --network none --name [container-name] [image-name]docker runis the command to run a Docker container.--rmis an option that automatically removes the container when it exits. This is useful for temporary or disposable containers.-dis an option that runs the container in the background (detached mode).-itis a combination of two options:-ifor interactive mode and-tfor allocating a pseudo-TTY. This allows you to interact with the container’s command prompt.
Overall, the command docker run --rm -dit creates and starts a Docker container in the background, with an interactive shell that you can access.
Location of files when running in Windows:
\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes