mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #921] Issue: Docker containers are always removed after a successful run #548
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#548
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jemrobinson on GitHub (Dec 9, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/921
System information
macOSx64 (64-bit)20.10.11act:catthehacker/ubuntu:act-latestactversion:0.2.25Expected behaviour
When running a job with
act -j <my_job_name>I expect theDockercontainer to be left running after a successful job unless I specify--rmActual behaviour
The
Dockercontainer and associated volume are removed as shown in the following log linesWorkflow and/or repository
workflow
Steps to reproduce
act -j test --verbose
actoutputLog
@catthehacker commented on GitHub (Dec 9, 2021):
That has been the behaviour since a very long time so we will not change that.
You can use
--reuseflag to keep containers after successful build.@jemrobinson commented on GitHub (Dec 14, 2021):
@catthehacker - OK, that's good to know. What's the difference between running with
--rmand without in that case? Both cases stop and remove the container.@catthehacker commented on GitHub (Dec 14, 2021):
--rmdeletes containers even after workflow failure, without it, containers are not removed@catthehacker commented on GitHub (Dec 14, 2021):
@jemrobinson will this help text be easier to understand?
github.com/catthehacker/act-fork@ec46d1aad7@jemrobinson commented on GitHub (Dec 15, 2021):
Yes, that's very clear. Thank you!