githubEdit

REQUIREMENTS:

1) User must be in docker group to run docker commands (or root in the container)

2) Docker socket must be exposed

STEPS:

1) Check if the Docker sock is mounted

cd /var/run 

ls -la | grep sock

3) Check if our user can run Docker commands

id
groups

4) Check if any images are already on the host

docker images

OR use curl

curl --unix-socket /var/run/docker.sock http://localhost/images/json

If not, download an Alpine image to host to import the image, then mount.

4.5) Create a new container in the existing image

Save ID from the output

Start the container

5) Escape the container

OR from 4.5 steps

6) PWNED!

Last updated