Docker containers View IP address

Docker's see the underlying information.

docker inspect returns a file recorded JSON configuration and status information Docker containers

Copy the code
the Inspect NAMES Docker 
# View all container status information; Inspect --format = Docker '{{.}} NetworkSettings.IPAddress' ID / NAMES
# ip address container See Inspect --format Docker '.Name} {} {} {} {.State.Running' NAMES
# vessel operating state
Copy the code

View Process

docker top NAMES

See port; (ID or name of the container using the container)

docker port ID/NAMES

View IP addresses can also be used directly by executing remote commands can (Centos7);

docker exec -it ID/NAMES ip addr 

 

Original Source: https: //www.cnblogs.com/sharesdk/p/10185931.html

Guess you like

Origin www.cnblogs.com/sucretan2010/p/11014743.html