# Debugging

A container with some useful debugging tools pre-installed meant to be attached
to an already running container.

## Connecting to a running container

CONTAINER_NAME=cloudgate-running docker run --rm \
  -it \
  --net=container:${CONTAINER_NAME} \
  --pid=container:${CONTAINER_NAME} \
  --cap-add sys_admin \
  --cap-add sys_ptrace \
  instructure/debugging bash

# Debugging

A container with some useful debugging tools pre-installed meant to be attached
to an already running container.

## Connecting to a running container

```bash
CONTAINER_NAME=cloudgate-running docker run --rm \
  -it \
  --net=container:${CONTAINER_NAME} \
  --pid=container:${CONTAINER_NAME} \
  --cap-add sys_admin \
  --cap-add sys_ptrace \
  instructure/debugging bash
```

Fix shell script formatting in the debugging image readme
Fix shell script formatting in the debugging image readme

Change-Id: I8fcd27fa121f80c7a032fbba81dbcf03d3db6f8d
Reviewed-on: https://gerrit.instructure.com/177668
Reviewed-by: Matt Wheeler <ce71fbafda91d6c8f12582e1837687d5fe592dd9@instructure.com>
Tested-by: Tyler Pickett <3f20fcf21b1970c94966160adcf831eedd808a06@instructure.com>
QA-Review: Tyler Pickett <3f20fcf21b1970c94966160adcf831eedd808a06@instructure.com>
Product-Review: Tyler Pickett <3f20fcf21b1970c94966160adcf831eedd808a06@instructure.com>
