https://github.com/akx/sukkalaatikko
proxies UNIX socket requests
https://github.com/akx/sukkalaatikko
docker pcap unix-socket
Last synced: 3 months ago
JSON representation
proxies UNIX socket requests
- Host: GitHub
- URL: https://github.com/akx/sukkalaatikko
- Owner: akx
- License: mit
- Created: 2023-05-30T13:40:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T06:25:24.000Z (8 months ago)
- Last Synced: 2024-11-24T18:12:33.485Z (7 months ago)
- Topics: docker, pcap, unix-socket
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sukkalaatikko
> (the sock box)
Sukkalaatikko proxies UNIX socket requests, like `socat` but not as powerful.
I've used it to debug what happens between the Docker client and the Docker daemon.
## Usage
```
uv run sukkalaatikko.py -p temp.sock -t /Users/akx/.docker/run/docker.sock
```would create a UNIX socket at `temp.sock` that proxies requests to `/Users/akx/.docker/run/docker.sock`.
You can then do e.g. `set -x DOCKER_HOST unix:///Users/akx/temp.sock` and use the Docker client as usual.
Conversations are logged on stdout and in the `data/` directory in pcap and JSON formats.