[GH-ISSUE #921] Issue: Docker containers are always removed after a successful run #548

Closed
opened 2026-03-01 21:44:23 +03:00 by kerem · 5 comments
Owner

Originally created by @jemrobinson on GitHub (Dec 9, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/921

System information

  • Operating System: macOS
  • Architecture: x64 (64-bit)
  • Apple M1: no
  • Docker version: 20.10.11
  • Docker image used in act: catthehacker/ubuntu:act-latest
  • act version: 0.2.25

Expected behaviour

When running a job with act -j <my_job_name> I expect the Docker container to be left running after a successful job unless I specify --rm

Actual behaviour

The Docker container and associated volume are removed as shown in the following log lines

[Test/test] Removed container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21
[Test/test]   🐳  docker volume rm act-Test-test

Workflow and/or repository

workflow
---
name: Test

on:
  push:
    branches: [develop]

permissions:
  contents: write

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Create output directory
        shell: bash
        run: |
          echo "OUTPUTDIR=$(mktemp -d)" >> $GITHUB_ENV
      - name: Test step
        shell: bash
        run: |
          pwd
          mkdir -p ${{env.OUTPUTDIR}}
          touch ${{env.OUTPUTDIR}}/output

Steps to reproduce

act -j test --verbose

act output

Log
DEBU[0000] Loading environment from /path/to/my/repo/.env
DEBU[0000] Loading secrets from /path/to/my/repo/.secrets
DEBU[0000] Loading workflows from '/path/to/my/repo/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'build_allow_lists.yaml' in '/path/to/my/repo/.github/workflows/build_allow_lists.yaml'
DEBU[0000] Found workflow 'build_docs.yaml' in '/path/to/my/repo/.github/workflows/build_docs.yaml'
DEBU[0000] Found workflow 'test.yaml' in '/path/to/my/repo/.github/workflows/test.yaml'
DEBU[0000] Reading workflow '/path/to/my/repo/.github/workflows/build_allow_lists.yaml'
DEBU[0000] Correcting if statements '/path/to/my/repo/.github/workflows/build_allow_lists.yaml'
DEBU[0000] Reading workflow '/path/to/my/repo/.github/workflows/build_docs.yaml'
DEBU[0000] Correcting if statements '/path/to/my/repo/.github/workflows/build_docs.yaml'
DEBU[0000] Reading workflow '/path/to/my/repo/.github/workflows/test.yaml'
DEBU[0000] Correcting if statements '/path/to/my/repo/.github/workflows/test.yaml'
DEBU[0000] Planning job: test
DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
DEBU[0000] context env => map[ACT:true]
DEBU[0000] context needs => map[]
[Test/test] 🚀  Start image=catthehacker/ubuntu:act-latest
DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
[Test/test]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false
[Test/test]   🐳  docker pull catthehacker/ubuntu:act-latest
DEBU[0000] Image exists? true
[Test/test] Removed container: e8bb938a61866e04c0631a7b8ebf4683463f2fea9b688e665056511a5340292d
[Test/test]   🐳  docker volume rm act-Test-test
[Test/test]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test/test] Created container name=act-Test-test id=bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21 from image catthehacker/ubuntu:act-latest (platform: )
[Test/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[Test/test]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test/test] Starting container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21
[Test/test] Started container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21
[Test/test]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir=
[Test/test] Exec command '[mkdir -m 0777 -p /var/run/act]'
[Test/test] Working directory '/path/to/my/repo'
DEBU[0000] Writing entry to tarball workflow/event.json len:2
DEBU[0000] Writing entry to tarball workflow/envs.txt len:0
DEBU[0000] Writing entry to tarball workflow/paths.txt len:0
[Test/test] Extracting content to '/var/run/act/'
DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
DEBU[0000] context needs => map[]
DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Test/test] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Test/test] ⭐  Run Create output directory
DEBU[0000] Wrote command '
echo "OUTPUTDIR=$(mktemp -d)" >> $GITHUB_ENV

' to 'workflow/0.sh'
DEBU[0000] Writing entry to tarball workflow/0.sh len:45
[Test/test] Extracting content to '/path/to/my/repo'
[Test/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/0.sh] user= workdir=
[Test/test] Exec command '[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/0.sh]'
[Test/test] Working directory '/path/to/my/repo'
[Test/test]   ✅  Success - Create output directory
DEBU[0001] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0001] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0001] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0001] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
DEBU[0001] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0001] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0001] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0001] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
DEBU[0001] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
DEBU[0001] context needs => map[]
DEBU[0001] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Test/test] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Test/test] ⭐  Run Test step
DEBU[0001] Evaluating 'env['OUTPUTDIR']' instead of 'env.OUTPUTDIR'
DEBU[0001] Evaluating 'env['OUTPUTDIR']' instead of 'env.OUTPUTDIR'
DEBU[0001] Wrote command '
pwd
mkdir -p /tmp/tmp.RxZctcbRD7
touch /tmp/tmp.RxZctcbRD7/output

' to 'workflow/1.sh'
DEBU[0001] Writing entry to tarball workflow/1.sh len:66
[Test/test] Extracting content to '/path/to/my/repo'
[Test/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/1.sh] user= workdir=
[Test/test] Exec command '[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/1.sh]'
[Test/test] Working directory '/path/to/my/repo'
| /path/to/my/repo
[Test/test]   ✅  Success - Test step
[Test/test] Removed container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21
[Test/test]   🐳  docker volume rm act-Test-test
DEBU[0001] Loading slug from git directory '/path/to/my/repo/.git'
DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0001] Loading revision from git directory '/path/to/my/repo/.git'
DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad
DEBU[0001] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad'
DEBU[0001] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions
DEBU[0001] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
DEBU[0001] context needs => map[]
Originally created by @jemrobinson on GitHub (Dec 9, 2021). Original GitHub issue: https://github.com/nektos/act/issues/921 ## System information - Operating System: `macOS` - Architecture: `x64 (64-bit)` - Apple M1: no - Docker version: `20.10.11` - Docker image used in `act`: `catthehacker/ubuntu:act-latest` - `act` version: `0.2.25` ## Expected behaviour When running a job with `act -j <my_job_name>` I expect the `Docker` container to be left running after a successful job unless I specify `--rm` ## Actual behaviour The `Docker` container and associated volume are removed as shown in the following log lines ``` [Test/test] Removed container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21 [Test/test] 🐳 docker volume rm act-Test-test ``` ## Workflow and/or repository <details> <summary>workflow</summary> ```none --- name: Test on: push: branches: [develop] permissions: contents: write jobs: test: runs-on: ubuntu-latest steps: - name: Create output directory shell: bash run: | echo "OUTPUTDIR=$(mktemp -d)" >> $GITHUB_ENV - name: Test step shell: bash run: | pwd mkdir -p ${{env.OUTPUTDIR}} touch ${{env.OUTPUTDIR}}/output ``` </details> ## Steps to reproduce act -j test --verbose ## `act` output <details> <summary>Log</summary> ```none DEBU[0000] Loading environment from /path/to/my/repo/.env DEBU[0000] Loading secrets from /path/to/my/repo/.secrets DEBU[0000] Loading workflows from '/path/to/my/repo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'build_allow_lists.yaml' in '/path/to/my/repo/.github/workflows/build_allow_lists.yaml' DEBU[0000] Found workflow 'build_docs.yaml' in '/path/to/my/repo/.github/workflows/build_docs.yaml' DEBU[0000] Found workflow 'test.yaml' in '/path/to/my/repo/.github/workflows/test.yaml' DEBU[0000] Reading workflow '/path/to/my/repo/.github/workflows/build_allow_lists.yaml' DEBU[0000] Correcting if statements '/path/to/my/repo/.github/workflows/build_allow_lists.yaml' DEBU[0000] Reading workflow '/path/to/my/repo/.github/workflows/build_docs.yaml' DEBU[0000] Correcting if statements '/path/to/my/repo/.github/workflows/build_docs.yaml' DEBU[0000] Reading workflow '/path/to/my/repo/.github/workflows/test.yaml' DEBU[0000] Correcting if statements '/path/to/my/repo/.github/workflows/test.yaml' DEBU[0000] Planning job: test DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions DEBU[0000] context env => map[ACT:true] DEBU[0000] context needs => map[] [Test/test] 🚀 Start image=catthehacker/ubuntu:act-latest DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions [Test/test] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false [Test/test] 🐳 docker pull catthehacker/ubuntu:act-latest DEBU[0000] Image exists? true [Test/test] Removed container: e8bb938a61866e04c0631a7b8ebf4683463f2fea9b688e665056511a5340292d [Test/test] 🐳 docker volume rm act-Test-test [Test/test] 🐳 docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Test/test] Created container name=act-Test-test id=bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21 from image catthehacker/ubuntu:act-latest (platform: ) [Test/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [Test/test] 🐳 docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Test/test] Starting container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21 [Test/test] Started container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21 [Test/test] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir= [Test/test] Exec command '[mkdir -m 0777 -p /var/run/act]' [Test/test] Working directory '/path/to/my/repo' DEBU[0000] Writing entry to tarball workflow/event.json len:2 DEBU[0000] Writing entry to tarball workflow/envs.txt len:0 DEBU[0000] Writing entry to tarball workflow/paths.txt len:0 [Test/test] Extracting content to '/var/run/act/' DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions DEBU[0000] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0000] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0000] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0000] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] DEBU[0000] context needs => map[] DEBU[0000] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Test/test] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Test/test] ⭐ Run Create output directory DEBU[0000] Wrote command ' echo "OUTPUTDIR=$(mktemp -d)" >> $GITHUB_ENV ' to 'workflow/0.sh' DEBU[0000] Writing entry to tarball workflow/0.sh len:45 [Test/test] Extracting content to '/path/to/my/repo' [Test/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/0.sh] user= workdir= [Test/test] Exec command '[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/0.sh]' [Test/test] Working directory '/path/to/my/repo' [Test/test] ✅ Success - Create output directory DEBU[0001] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0001] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0001] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0001] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions DEBU[0001] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0001] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0001] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0001] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions DEBU[0001] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] DEBU[0001] context needs => map[] DEBU[0001] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Test/test] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Test/test] ⭐ Run Test step DEBU[0001] Evaluating 'env['OUTPUTDIR']' instead of 'env.OUTPUTDIR' DEBU[0001] Evaluating 'env['OUTPUTDIR']' instead of 'env.OUTPUTDIR' DEBU[0001] Wrote command ' pwd mkdir -p /tmp/tmp.RxZctcbRD7 touch /tmp/tmp.RxZctcbRD7/output ' to 'workflow/1.sh' DEBU[0001] Writing entry to tarball workflow/1.sh len:66 [Test/test] Extracting content to '/path/to/my/repo' [Test/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/1.sh] user= workdir= [Test/test] Exec command '[bash --noprofile --norc -e -o pipefail /path/to/my/repo/workflow/1.sh]' [Test/test] Working directory '/path/to/my/repo' | /path/to/my/repo [Test/test] ✅ Success - Test step [Test/test] Removed container: bea8043108f49aa2c3214d935687b3246c772196b2265ece752af691b5770c21 [Test/test] 🐳 docker volume rm act-Test-test DEBU[0001] Loading slug from git directory '/path/to/my/repo/.git' DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0001] Loading revision from git directory '/path/to/my/repo/.git' DEBU[0001] Found revision: 977032217f6f8de626511dd69d7da1de5f3945ad DEBU[0001] HEAD points to '977032217f6f8de626511dd69d7da1de5f3945ad' DEBU[0001] using github ref: refs/heads/1055-add-kerberos-mitigation-instructions DEBU[0001] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/1055-add-kerberos-mitigation-instructions GITHUB_REPOSITORY:jemrobinson/myreponame GITHUB_REPOSITORY_OWNER:jemrobinson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:977032217f6f8de626511dd69d7da1de5f3945ad GITHUB_TOKEN: GITHUB_WORKFLOW:Test GITHUB_WORKSPACE:/path/to/my/repo IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 OUTPUTDIR:/tmp/tmp.RxZctcbRD7 PATH:/opt/hostedtoolcache/node/14.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] DEBU[0001] context needs => map[] ``` </details>
kerem 2026-03-01 21:44:23 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@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 --reuse flag to keep containers after successful build.

<!-- gh-comment-id:990194667 --> @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 `--reuse` flag to keep containers after successful build.
Author
Owner

@jemrobinson commented on GitHub (Dec 14, 2021):

@catthehacker - OK, that's good to know. What's the difference between running with --rm and without in that case? Both cases stop and remove the container.

<!-- gh-comment-id:993360328 --> @jemrobinson commented on GitHub (Dec 14, 2021): @catthehacker - OK, that's good to know. What's the difference between running with `--rm` and without in that case? Both cases stop and remove the container.
Author
Owner

@catthehacker commented on GitHub (Dec 14, 2021):

--rm deletes containers even after workflow failure, without it, containers are not removed

<!-- gh-comment-id:993367908 --> @catthehacker commented on GitHub (Dec 14, 2021): `--rm` deletes containers even after workflow failure, without it, containers are not removed
Author
Owner

@catthehacker commented on GitHub (Dec 14, 2021):

@jemrobinson will this help text be easier to understand?
github.com/catthehacker/act-fork@ec46d1aad7

<!-- gh-comment-id:993382588 --> @catthehacker commented on GitHub (Dec 14, 2021): @jemrobinson will this help text be easier to understand? https://github.com/catthehacker/act-fork/commit/ec46d1aad7d0d5524b4e7a12223a7bfb1718a541
Author
Owner

@jemrobinson commented on GitHub (Dec 15, 2021):

Yes, that's very clear. Thank you!

<!-- gh-comment-id:995089684 --> @jemrobinson commented on GitHub (Dec 15, 2021): Yes, that's very clear. Thank you!
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#548
No description provided.