Notes
Notes copied to clipboard
docker容器和宿主机通信
查看宿主机ip, 使用ifconfig
:
查看容器的网络配置, 使用docker inspect 容器id
:
进入容器测试:
docker exec -it 容器id /bin/bash