Antivirus software and Docker
Estimated reading time: 1 minuteWhen antivirus software scans files used by Docker, these files may be locked in a way that causes Docker commands to hang.
One way to reduce these problems is to add the Docker data directory
(/var/lib/docker
on Linux or $Env:ProgramData
on Windows Server) to the
antivirus’s exclusion list. However, this comes with the trade-off that viruses
or malware in Docker images, writable layers of containers, or volumes will not
be detected. If you do choose to exclude Docker’s data directory from background
virus scanning, you may want to schedule a recurring task that stops Docker,
scans the data directory, and restarts Docker.