title: How do you view a log created during gitlab-runner exec?
body: <p>I am testing a GitLab CI pipeline with <code>gitlab-runner exec</code>. During a script, Boost ran into an error, and it created a log file. I want to view this log file, but I do not know how to.</p>
  
  <p><code>.gitlab-ci.yml</code> in project directory:</p>
  
  <pre><code>image: alpine
  
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  
  build:
    script:
    - apk add cmake
    - cd include/boost
    - sh bootstrap.sh
  </code></pre>
  
  <p>I test this on my machine with:</p>
  
  <pre><code>sudo gitlab-runner exec docker build --timeout 3600
  </code></pre>
  
  <p>The last several lines of the output:</p>
  
  <pre><code>Building Boost.Build engine with toolset ... 
  Failed to build Boost.Build build engine
  Consult 'bootstrap.log' for more details
  ERROR: Job failed: exit code 1
  FATAL: exit code 1    
  </code></pre>
  
  <p><code>bootstrap.log</code> is what I would like to view.</p>
  
  <p>Appending <code>- cat bootstrap.log</code> to <code>.gitlab-ci.yml</code> does not output the file contents because the runner exits before this line. I tried looking though past containers with <code>sudo docker ps -a</code>, but this does not show the one that GitLab Runner used. How can I open <code>bootstrap.log</code>?</p>