Docker Failed to fetch deb.debian.org Size mismatch

I am using Docker Desktop for Windows. I am trying to run the command docker build -t dtr.server.com/test/jenkins-build-agent-ui:abc123 . but I got an error

E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/a/apt/apt-utils_1.0.9.8.5_amd64.deb  Siz
e mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/a/apt/apt-transport-https_1.0.9.8.4_amd64.deb  Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/p/pinentry/pinentry-gtk2_0.8.3-2_amd64.deb  Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnupg2/gnupg-agent_2.0.26-6+deb8u2_amd64.deb  Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnupg2/gnupg2_2.0.26-6+deb8u2_amd64.deb  Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python-apt/python3-apt_0.9.3.12_amd64.deb  Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/d/dbus-python/python3-dbus_1.2.0-2+b3_amd64.deb  Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/p/pygobject/python3-gi_3.14.0-1_amd64.deb  Size mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/bash -o pipefail -c apt-get update &&     apt-get -y install --no-install-recommends     apt-transport
-https=1.0.9.8.4     gnupg2=2.0.26-6+deb8u2     software-properties-common=0.92.25debian1     && rm -rf /var/lib/apt/lis
ts/*' returned a non-zero code: 100

My Docker version is 18.09.2.

Source: StackOverflow