Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.99 KB | None | 0 0
  1. 19:44:15 homebox:~ λ docker run -d --name=folexamamka debian:stretch-slim sleep 9999
  2. 87a46935c52beecc47f1644cf17805022acddc247b171fd109418389e6ed92d8
  3. 19:44:26 homebox:~ λ docker cp /bin/netstat folexamamka:/tmp/
  4. 19:44:32 homebox:~ λ docker exec -ti folexamamka bash
  5. root@87a46935c52b:/# apt-get update &>/dev/null
  6. root@87a46935c52b:/# apt-get install nginx -y &>/dev/null
  7. root@87a46935c52b:/# /tmp/netstat -plunt
  8. Active Internet connections (only servers)
  9. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
  10. root@87a46935c52b:/# nginx
  11. root@87a46935c52b:/# /tmp/netstat -plunt
  12. Active Internet connections (only servers)
  13. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
  14. tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1025/nginx: master  
  15. tcp6       0      0 :::80                   :::*                    LISTEN      1025/nginx: master  
  16. root@87a46935c52b:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement