[GH-ISSUE #1096] Issue: Cannot start a Windows container #627

Closed
opened 2026-03-01 21:45:04 +03:00 by kerem · 3 comments
Owner

Originally created by @ThomasSowders on GitHub (Mar 30, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1096

System information

- Operating System: Windows
- Architecture: x64 (64-bit)
- Apple M1: N/A
- Docker version: 20.10.13
- Docker image used in `act`: A non-public Windows Docker image
- `act` version 0.2.26

Docker is setup to run Windows containers

Expected behaviour

act creates a Windows container and runs the workflow

Actual behaviour

act does not seem to understand that this in a Windows container, and tries to mount a volume to /toolcache, resulting in the error "Error response from daemon: invalid mount config for type "volume": invalid mount path: '/toolcache'"

Log Some internal identifiers have been replaced with ▮ characters

> act --container-architecture windows/amd64 --job build-and-deploy -P self-hosted=us.gcr.io/▮/buildagent-windows:latest -v

[ci-shared/build-and-deploy]    docker pull image=us.gcr.io/▮/buildagent-windows:latest platform=windows/amd64 username= forcePull=false
[ci-shared/build-and-deploy]    docker pull us.gcr.io/▮/buildagent-windows:latest
time="2022-03-30T15:17:27-04:00" level=debug msg="Image exists? true"
[ci-shared/build-and-deploy]    docker create image=us.gcr.io/▮/buildagent-windows:latest platform=windows/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
time="2022-03-30T15:17:27-04:00" level=debug msg="Loading slug from git directory 'C:\\▮\\.git'"
time="2022-03-30T15:17:27-04:00" level=debug msg="Loading revision from git directory 'C:\\▮\\.git'"
time="2022-03-30T15:17:27-04:00" level=debug msg="Found revision: 21▮d3\n"
time="2022-03-30T15:17:27-04:00" level=debug msg="HEAD points to '21▮d3'"
time="2022-03-30T15:17:38-04:00" level=debug msg="using github ref: refs/heads/▮"
time="2022-03-30T15:17:38-04:00" level=debug msg="Found revision: 21▮d3\n"
time="2022-03-30T15:17:38-04:00" level=debug msg="using github ref: refs/heads/▮"
time="2022-03-30T15:17:38-04:00" level=debug msg="Found revision: 21▮d3\n"
Error: Error response from daemon: invalid mount config for type "volume": invalid mount path: '/toolcache'
Originally created by @ThomasSowders on GitHub (Mar 30, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1096 ## System information - Operating System: Windows - Architecture: x64 (64-bit) - Apple M1: N/A - Docker version: 20.10.13 - Docker image used in `act`: A non-public Windows Docker image - `act` version 0.2.26 Docker is setup to run Windows containers ## Expected behaviour act creates a Windows container and runs the workflow ## Actual behaviour `act` does not seem to understand that this in a Windows container, and tries to mount a volume to `/toolcache`, resulting in the error "Error response from daemon: invalid mount config for type "volume": invalid mount path: '/toolcache'" <details> <summary>Log</summary> Some internal identifiers have been replaced with ▮ characters ```none > act --container-architecture windows/amd64 --job build-and-deploy -P self-hosted=us.gcr.io/▮/buildagent-windows:latest -v [ci-shared/build-and-deploy] docker pull image=us.gcr.io/▮/buildagent-windows:latest platform=windows/amd64 username= forcePull=false [ci-shared/build-and-deploy] docker pull us.gcr.io/▮/buildagent-windows:latest time="2022-03-30T15:17:27-04:00" level=debug msg="Image exists? true" [ci-shared/build-and-deploy] docker create image=us.gcr.io/▮/buildagent-windows:latest platform=windows/amd64 entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] time="2022-03-30T15:17:27-04:00" level=debug msg="Loading slug from git directory 'C:\\▮\\.git'" time="2022-03-30T15:17:27-04:00" level=debug msg="Loading revision from git directory 'C:\\▮\\.git'" time="2022-03-30T15:17:27-04:00" level=debug msg="Found revision: 21▮d3\n" time="2022-03-30T15:17:27-04:00" level=debug msg="HEAD points to '21▮d3'" time="2022-03-30T15:17:38-04:00" level=debug msg="using github ref: refs/heads/▮" time="2022-03-30T15:17:38-04:00" level=debug msg="Found revision: 21▮d3\n" time="2022-03-30T15:17:38-04:00" level=debug msg="using github ref: refs/heads/▮" time="2022-03-30T15:17:38-04:00" level=debug msg="Found revision: 21▮d3\n" Error: Error response from daemon: invalid mount config for type "volume": invalid mount path: '/toolcache' ``` </details>
kerem 2026-03-01 21:45:04 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@catthehacker commented on GitHub (Mar 30, 2022):

Windows containers are not supported (it's mentioned here: https://github.com/nektos/act#runners)

<!-- gh-comment-id:1083549725 --> @catthehacker commented on GitHub (Mar 30, 2022): Windows containers are not supported (it's mentioned here: https://github.com/nektos/act#runners)
Author
Owner

@ThomasSowders commented on GitHub (Mar 30, 2022):

Ah, that is disappointing, but thanks for the clarification. Sorry, I missed that in the Readme

<!-- gh-comment-id:1083552958 --> @ThomasSowders commented on GitHub (Mar 30, 2022): Ah, that is disappointing, but thanks for the clarification. Sorry, I missed that in the Readme
Author
Owner

@ChristopherHX commented on GitHub (Mar 30, 2022):

If you want windows container => https://github.com/ChristopherHX/runner.server, should be similar enough to act.

<!-- gh-comment-id:1083553069 --> @ChristopherHX commented on GitHub (Mar 30, 2022): If you want windows container => https://github.com/ChristopherHX/runner.server, should be similar enough to act.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#627
No description provided.