# Donnie Docker

## Problem

I found this weird machine online, looks like they're using docker for security but I'm not sure their OPSEC is as good as they think!

`ssh user@chals2.umdctf.io -p 5000 password: umdctf`

## Solution

Reference: <https://book.hacktricks.xyz/linux-unix/privilege-escalation/docker-breakout>

The docker socket is mounted inside the docker container. This allows us to run regular docker commands to communicate with the docker daemon, for instance mounting the host disk, and chroot-ing to it.

![](/files/-MYc6rW25rHnB-IS8TwY)

We find the flag.txt here:

![](/files/-MYc6uUcdDThe6sybxK0)

Obtaining our flag:

![](/files/-MYc6xhBtCi-HNRhlteS)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ctf.zeyu2001.com/2021/umdctf-2021/donnie-docker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
