Docker: any way to list open sockets inside a running docker container?

前端 未结 3 1699
遇见更好的自我
遇见更好的自我 2021-01-29 21:53

I would like to execute netstat inside a running docker container to see open TCP sockets and their statuses. But, on some of my docker containers, netstat is not available. Is

3条回答
  •  后悔当初
    2021-01-29 22:39

    server:docker container ls

    CONTAINER ID    IMAGE              COMMAND                  CREATED          STATUS           PORTS       NAMES
    
    80acfa804b59    admirito/gsad:10   "docker-entrypoint.s…"   18 minutes ago   Up 10 minutes    80/tcp      gvmcontainers_gsad_1
    

提交回复
热议问题