본문 바로가기
리눅스

sudo docker ps -q | xargs sudo docker inspect --format '{{ .Id }}: NetworkMode={{ .HostConfig.NetworkMode }}'

by 혜룐 2020. 2. 17.

[test@host-server001 ~]$ sudo docker ps -q | xargs sudo docker inspect --format '{{ .Id }}: NetworkMode={{ .HostConfig.NetworkMode }}'
e23ee20ed8ass454002edf24894dff0f66388705215f21ff14345sdfa0a3523ea: NetworkMode=default
5782381e0fasdcb80056a3908adfd901ad57a60b7a7832ac345dfd7336d7d097: NetworkMode=default
2333bef1asde786c58fb0d4a12df64d3cf97735b3665f7594345sdf642b6a13a: NetworkMode=host