本地机器绑定host:
sudo vi /etc/hosts
docker容器添加host绑定:
--add-host puppet master:192.168.0.3
进入docker容器:
sudo docker exec -it stf-auth-3200 /bin/sh
docker查看log
docker logs -f 容器名或者容器id
本地机器绑定host:
sudo vi /etc/hosts
docker容器添加host绑定:
--add-host puppet master:192.168.0.3
进入docker容器:
sudo docker exec -it stf-auth-3200 /bin/sh
docker查看log
docker logs -f 容器名或者容器id