I used the Docker command to run a container.
docker run -itd -p 8001:801 --name centos7_01 centos:centos7 /bin/bash
- Can I see the IP address of the host in the container?
- Can I write the port of the host in the port map consistent with the port of the container?