Linux Lấy IP host từ Docker Container

Table of Contents

Linux Lấy IP host từ Docker Container

Lấy IP host

  1. Log vào Docker container để cài mấy lệnh sau
    apt-get update -y
    apt-get install -y iputils-ping
    apt install net-tools
  2. Sau đó check netmask container đang chạy là bao nhiêu
  3. Check xem Host đang dùng netmask nào để truy ra IP của Host mà Container ping được

image
image

Leave a Reply

Your email address will not be published. Required fields are marked *