Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hcsshim::ExpandScratchSize #431

Closed
ntrappe-msft opened this issue Oct 11, 2023 · 1 comment
Closed

hcsshim::ExpandScratchSize #431

ntrappe-msft opened this issue Oct 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ntrappe-msft
Copy link
Contributor

ntrappe-msft commented Oct 11, 2023

Describe the bug

When starting up a container from an image like Windows Server 2022, we hit a hcsshim::ExpandScratchSize error.

To Reproduce

  1. DO NOT pull the latest Windows Server 2022 image. Use an older image like the following:
REPOSITORY                        TAG             IMAGE ID      CREATED
mcr.microsoft.com/windows/server  ltsc2022-amd64  40a39129fbbb  5 months ago
mcr.microsoft.com/windows/server  <none>          29e69ab16e91  5 months ago
  1. Start up a container.
docker run mcr.microsoft.com/windows/server:ltsc2022-amd64
  1. You should immediately see the error:
Error response from daemon: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. (0x2).

Expected behavior

We should be able to spin up a container from any Windows Server 2022 image without issue.

Configuration:

  • Edition: Windows Server 2022
  • Base Image being used: Windows Server 2022
  • Container engine: docker
  • Container Engine Version: 24.0.5

Additional context

@ntrappe-msft ntrappe-msft added the bug Something isn't working label Oct 11, 2023
@ntrappe-msft ntrappe-msft self-assigned this Oct 11, 2023
@ntrappe-msft
Copy link
Contributor Author

ntrappe-msft commented Oct 11, 2023

Solution

The easiest way to resolve this Issue is to re-pull the image. I've repro'd the error across Windows Server 2019, Windows Server 2022, Windows Server 2022 amd64, etc. (It's not sensitive to the slight different in the server versions). If you re-pull the image, the error should go away.

> docker pull mcr.microsoft.com/windows/server:ltsc2022
> docker run mcr.microsoft.com/windows/server:ltsc2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant