On trying to run a Windows job locally using the CircleCI CLI, it would appear that it is failing to pull the windows image that CircleCI is using, meaning I cannot test it. Output is shown below:
circleci local execute --job win Docker image digest: sha256:7887006b1ccf28b3f7bae23721820e2f7d26bcd41723a5864958e7f0079062da ====>> Spin up environment Build-agent version () Docker Engine Version: 20.10.0 Kernel Version: Linux 2fc739af07b1 4.19.121-linuxkit #1 SMP Tue Dec 1 17:50:32 UTC 2020 x86_64 Linux Starting container windows-server-2019-vs2019:stable Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub. image cache not found on this host, downloading windows-server-2019-vs2019:stable Error pulling image windows-server-2019-vs2019:stable: Error response from daemon: pull access denied for windows-server-2019-vs2019, repository does not exist or may require 'docker login': denied: requested access to the resource is denied... retrying
and then it just repeats the error until I kill it. The relevant job config is:
version: 2.1 orbs: win: email@example.com jobs: win: executor: name: win/default shell: bash.exe steps: - run: node --version
It would be nice if it was possible to test windows locally, or at least have the CLI say it’s not possible like it does with macOS jobs.