[GH-ISSUE #300] if one job fails, the next run complains about volume is still in use #212

Closed
opened 2026-03-01 21:41:18 +03:00 by kerem · 15 comments
Owner

Originally created by @xsteadfastx on GitHub (Jul 2, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/300

Version: 0.2.10

its about this workflow file. the tests are failing right now and thats ok so far. but if i run act again it complains about the docker volume is still in use.

$ act -v push
DEBU[0000] Loading environment from /home/marv/wip/carson/.env
DEBU[0000] Loading secrets from
DEBU[0000] Loading workflows from '/home/marv/wip/carson/.github/workflows'
DEBU[0000] Reading workflow '/home/marv/wip/carson/.github/workflows/push.yml'
DEBU[0000] Planning event: push
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] using github ref: refs/heads/dev
DEBU[0000] context env => map[]
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] using github ref: refs/heads/dev
DEBU[0000] context env => map[]
[push/test] 🚀  Start image=node:12.6-buster-slim
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
[push/lint] 🚀  Start image=node:12.6-buster-slim
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git'
DEBU[0000] using github ref: refs/heads/dev
DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37
DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37'
[push/test]   🐳  docker pull node:12.6-buster-slim
DEBU[0000] HEAD matches refs/heads/dev
DEBU[0000] using github ref: refs/heads/dev
[push/lint]   🐳  docker pull node:12.6-buster-slim
DEBU[0000] Image exists? true
DEBU[0000] Image exists? true
[push/lint]   🐳  docker volume rm act-push-lint
[push/test]   🐳  docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
Error: Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768]
$ docker ps -a
CONTAINER ID        IMAGE                            COMMAND             CREATED             STATUS                      PORTS               NAMES
e5a5d94510a0        golangci/golangci-lint:v1.27.0   "make lint"         20 minutes ago      Exited (0) 19 minutes ago                       act-push-lint-1
Originally created by @xsteadfastx on GitHub (Jul 2, 2020). Original GitHub issue: https://github.com/nektos/act/issues/300 Version: 0.2.10 its about [this](https://github.com/xsteadfastx/carson/blob/dev/.github/workflows/push.yml) workflow file. the tests are failing right now and thats ok so far. but if i run `act` again it complains about the docker volume is still in use. ``` $ act -v push DEBU[0000] Loading environment from /home/marv/wip/carson/.env DEBU[0000] Loading secrets from DEBU[0000] Loading workflows from '/home/marv/wip/carson/.github/workflows' DEBU[0000] Reading workflow '/home/marv/wip/carson/.github/workflows/push.yml' DEBU[0000] Planning event: push DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git' DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git' DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37' DEBU[0000] HEAD matches refs/heads/dev DEBU[0000] using github ref: refs/heads/dev DEBU[0000] context env => map[] DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git' DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git' DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37' DEBU[0000] HEAD matches refs/heads/dev DEBU[0000] using github ref: refs/heads/dev DEBU[0000] context env => map[] [push/test] 🚀 Start image=node:12.6-buster-slim DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git' [push/lint] 🚀 Start image=node:12.6-buster-slim DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git' DEBU[0000] Loading slug from git directory '/home/marv/wip/carson/.git' DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37' DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] HEAD matches refs/heads/dev DEBU[0000] Loading revision from git directory '/home/marv/wip/carson/.git' DEBU[0000] using github ref: refs/heads/dev DEBU[0000] Found revision: c2721305e3b61c33ec3f8f9420c3837c0cab8d37 DEBU[0000] HEAD points to 'c2721305e3b61c33ec3f8f9420c3837c0cab8d37' [push/test] 🐳 docker pull node:12.6-buster-slim DEBU[0000] HEAD matches refs/heads/dev DEBU[0000] using github ref: refs/heads/dev [push/lint] 🐳 docker pull node:12.6-buster-slim DEBU[0000] Image exists? true DEBU[0000] Image exists? true [push/lint] 🐳 docker volume rm act-push-lint [push/test] 🐳 docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] DEBU[0000] Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] Error: Error response from daemon: remove act-push-lint: volume is in use - [e5a5d94510a022c8c5c16b0130aa6ca3736ad36c9669350c1300f0e1dc962768] ``` ``` $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e5a5d94510a0 golangci/golangci-lint:v1.27.0 "make lint" 20 minutes ago Exited (0) 19 minutes ago act-push-lint-1 ```
kerem 2026-03-01 21:41:18 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@xsteadfastx commented on GitHub (Jul 4, 2020):

i installed the master version and i have the feeling it works. maybe i stepped into #186.

<!-- gh-comment-id:653727919 --> @xsteadfastx commented on GitHub (Jul 4, 2020): i installed the master version and i have the feeling it works. maybe i stepped into #186.
Author
Owner

@xsteadfastx commented on GitHub (Jul 6, 2020):

nope... just got the volume is in use error again.

<!-- gh-comment-id:654109238 --> @xsteadfastx commented on GitHub (Jul 6, 2020): nope... just got the `volume is in use` error again.
Author
Owner

@xsteadfastx commented on GitHub (Jul 7, 2020):

another discovery:

when running two jobs... one is failing there is no cleanup or something of the one good job still running. maybe act should wait for all jobs finishing and after that complaining about a failed jobs. now it looks like its just stops the act process... no matter what.

<!-- gh-comment-id:654807191 --> @xsteadfastx commented on GitHub (Jul 7, 2020): another discovery: when running two jobs... one is failing there is no cleanup or something of the one good job still running. maybe act should wait for all jobs finishing and after that complaining about a failed jobs. now it looks like its just stops the act process... no matter what.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 6, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:687680024 --> @github-actions[bot] commented on GitHub (Sep 6, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@devnix commented on GitHub (Sep 23, 2020):

I had to remove the container listed in docker ps -a

<!-- gh-comment-id:697362049 --> @devnix commented on GitHub (Sep 23, 2020): I had to remove the container listed in `docker ps -a`
Author
Owner

@xsteadfastx commented on GitHub (Sep 24, 2020):

thats the point... i have to do this always when a job fails!

<!-- gh-comment-id:698589942 --> @xsteadfastx commented on GitHub (Sep 24, 2020): thats the point... i have to do this always when a job fails!
Author
Owner

@sebastian-palma commented on GitHub (Nov 19, 2020):

docker -rm ...

<!-- gh-comment-id:730688454 --> @sebastian-palma commented on GitHub (Nov 19, 2020): `docker -rm ...`
Author
Owner

@xsteadfastx commented on GitHub (Nov 20, 2020):

yeah... whats the point to have to do this on every failed step? am i holding it wrong?

<!-- gh-comment-id:731104136 --> @xsteadfastx commented on GitHub (Nov 20, 2020): yeah... whats the point to have to do this on every failed step? am i holding it wrong?
Author
Owner

@zyndagj commented on GitHub (Nov 22, 2020):

Reporting that this issue still exists in version 0.2.17

<!-- gh-comment-id:731774060 --> @zyndagj commented on GitHub (Nov 22, 2020): Reporting that this issue still exists in version 0.2.17
Author
Owner

@devnix commented on GitHub (Nov 24, 2020):

Can someone please reopen this?

<!-- gh-comment-id:733012640 --> @devnix commented on GitHub (Nov 24, 2020): Can someone please reopen this?
Author
Owner

@att14 commented on GitHub (Mar 6, 2021):

This appears to still be an issue in 0.2.20. Except in my experience it doesn't even cleanup the volume when the run is successful.

Here is a simple reproduction:

---
name: test-act-cleanup
on: push

jobs:
  test-act:
    name: Test act cleanup
    runs-on: ubuntu-latest
    steps:
      - name: Setup MongoDB
        uses: supercharge/mongodb-github-action@1.3.0
        with:
          mongodb-version: '4.4'

The second time running act will fail with:

| docker: Error response from daemon: Conflict. The container name "/mongodb" is already in use by container "d3c593b6638a09499e095a89817c0c3f88cab8177aacb43a4000fb8370741558". You have to remove (or rename) that container to be able to reuse that name.

I'm running this on macOS 10.15.7 if that matters.

<!-- gh-comment-id:792005110 --> @att14 commented on GitHub (Mar 6, 2021): This appears to still be an issue in 0.2.20. Except in my experience it doesn't even cleanup the volume when the run is successful. Here is a simple reproduction: ``` --- name: test-act-cleanup on: push jobs: test-act: name: Test act cleanup runs-on: ubuntu-latest steps: - name: Setup MongoDB uses: supercharge/mongodb-github-action@1.3.0 with: mongodb-version: '4.4' ``` The second time running `act` will fail with: ``` | docker: Error response from daemon: Conflict. The container name "/mongodb" is already in use by container "d3c593b6638a09499e095a89817c0c3f88cab8177aacb43a4000fb8370741558". You have to remove (or rename) that container to be able to reuse that name. ``` I'm running this on macOS 10.15.7 if that matters.
Author
Owner

@bixu commented on GitHub (Mar 17, 2021):

I'm also seeing this behavior. I usually need to restart macOS Docker as a workaround.

<!-- gh-comment-id:800908135 --> @bixu commented on GitHub (Mar 17, 2021): I'm also seeing this behavior. I usually need to restart macOS Docker as a workaround.
Author
Owner

@dannykopping commented on GitHub (Nov 6, 2024):

docker container prune works if you don't see any running act container.

<!-- gh-comment-id:2459111658 --> @dannykopping commented on GitHub (Nov 6, 2024): `docker container prune` works if you don't see any running `act` container.
Author
Owner

@iustin94 commented on GitHub (Feb 10, 2025):

Stil is an issue. On top of that after stoping manually any running container and doing "docker container prune" I still get the error "no such volume". At this stage, I'm just going to take my changes with the github runners dirrectly.

<!-- gh-comment-id:2649260266 --> @iustin94 commented on GitHub (Feb 10, 2025): Stil is an issue. On top of that after stoping manually any running container and doing "docker container prune" I still get the error "no such volume". At this stage, I'm just going to take my changes with the github runners dirrectly.
Author
Owner

@gustavorps commented on GitHub (Oct 29, 2025):

Stil is an issue. On top of that after stoping manually any running container and doing "docker container prune" I still get the error "no such volume". At this stage, I'm just going to take my changes with the github runners dirrectly.

Same

% act --version                       
act version 0.2.82

% docker --version
Docker version 28.3.3, build 980b856

% sw_vers
ProductName:            macOS
ProductVersion:         15.0.1
BuildVersion:           24A348
<!-- gh-comment-id:3462437533 --> @gustavorps commented on GitHub (Oct 29, 2025): > Stil is an issue. On top of that after stoping manually any running container and doing "docker container prune" I still get the error "no such volume". At this stage, I'm just going to take my changes with the github runners dirrectly. Same ```shell % act --version act version 0.2.82 % docker --version Docker version 28.3.3, build 980b856 % sw_vers ProductName: macOS ProductVersion: 15.0.1 BuildVersion: 24A348 ```
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#212
No description provided.