Skip to content

Instantly share code, notes, and snippets.

View milosgajdos's full-sized avatar
📡
👨‍💻

Milos Gajdos milosgajdos

📡
👨‍💻
View GitHub Profile
I have run an nginx container...
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6d67de07731d nginx "nginx -g 'daemon ..." 40 minutes ago Up 40 minutes 80/tcp, 443/tcp epic_goldberg
I want to use Debian for debug:
docker run -it --pid=container:6d67de07731d --net=container:6d67de07731d --cap-add sys_admin debian
I can see the nginx process: