How to access a Concourse container through the worker VM.
book
Article ID: 400629
calendar_today
Updated On:
Products
Concourse for VMware Tanzu
Issue/Introduction
When troubleshooting or testing Concourse, you may want to access the container where the job is running. This KB will describe how to do so.
Environment
Concourse deployed on BOSH
Resolution
Authenticate with the fly cli. In this example, the commands will use a target named "lab".
Run fly -t lab containers. This will show currently running builds, and builds that have completed recently.
From the list, identify the pipeline and job you wish to access. Take note of the handle and worker sections.
As an example of the output you expect:
handle
worker
pipeline
job
build #
build id
type
name
attempt
08d100a3-f7d3-46ee-6375-12391ac4632c
87f2f59f-768e-4237-9d19-ee7cd0cef0a8
slot1-lab27
install-healthwatch-pas-exporter
1
7026030
task
download-product-stemcell
n/a
From the output, you'll need to ssh to the worker that has the container running. In the above example, we'll run bosh -d <concourse> ssh worker/87f2f59f-768e-4237-9d19-ee7cd0cef0a9
sudo -i
From the worker, run the following command to access the container: /var/gdn/assets/linux/bin/runc exec -t 08d100a3-f7d3-46ee-6375-12391ac4632c /bin/bash
From here, you can run whichever tests you need to, or check the files that are being used in the containers.