1、安装网络包
yum install net-tools
2、查看IP
ifconfig -a
3、关于Docker容器的数据保存问题
重启容器,容器中的数据不会丢失
重启Docker本身,容器中的数据会丢失
如需要避免数据丢失,需要使用Volumn或者data container。
1、安装网络包
yum install net-tools
2、查看IP
ifconfig -a
3、关于Docker容器的数据保存问题
重启容器,容器中的数据不会丢失
重启Docker本身,容器中的数据会丢失
如需要避免数据丢失,需要使用Volumn或者data container。
转载于:https://my.oschina.net/u/4006447/blog/3043239