How to check the IP address of a docker container

王林
Release: 2020-12-07 15:40:43
forward
4175 people have browsed it

How to check the IP address of a docker container

Docker's network template is somewhat similar to the host-only mode we usually use virtual machines. The container and the host form an independent LAN. The host's IP is 172.17.0.1, corresponding to The network name of the host is docker0.

(Related recommendations: docker tutorial)

How to check the IP address of a docker container

So if you want to see the ip address of the docker container, you only need to install net- tools

yum install net-tools -y
Copy after login

How to check the IP address of a docker containerYou can check it with ifconfig after that

How to check the IP address of a docker container

The above is the detailed content of How to check the IP address of a docker container. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template