Skip to content

How to get coredump from inside docker container #25136

Answered by BrightRan
julianoes asked this question in Actions
Discussion options

You must be logged in to vote

@julianoes ,

Maybe you can try using the syntax  jobs.<job_id>.container.options to configure the optiones.

For example:

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    container:
      image: <image>
      options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
    steps:
      - name: Core Dump
        run: |
          ulimit -c unlimited
          echo '/tmp/core.%h.%e.%t' > /proc/sys/kernel/core_pattern

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants