How do I deploy Windows docker containers to docker-for-desktop Kubernetes cluster? pull access denied
The error you are seeing is not related to whether it can run or cannot run Windows containers, it's because it's not able to pull the image. It doesn't look like you pushed the image to docker hub. After you build it you need to run:
docker tag -t <yourdockerhubuser>/iis iisdocker push <yourdockerhubuser>/iis
You will need to set up your docker hub credentials as an ImagePullSecrets on your deployment. Then on you K8s deployment:
apiVersion: apps/v1beta1kind: Deploymentmetadata: name: iis-deploymentspec: replicas: 1 template: metadata: labels: app: iis spec: containers: - name: <yourdockerhubuser>/iis image: iis-site ports: - containerPort: 80 imagePullSecrets: - name: <your-docker-hub-user-secret>
Ok, this container will not run because you have Linux on your node, so you need to have a Windows node and for that, you will have set up the kubelet on your Windows machine. (I believe Docker for Windows doesn't support a Windows kubelet, and just a Linux kubelet running in VM).