为了满足需求,docker容器需要能够使用ifconfig命令,环境为fedora,通过docker pull一个fedora镜像后,容器中无法使用ifconfig
dnf update出现Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64'
解决方法,更换软件源
#rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm&&rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
#dnf macache
来源http://jingyan.baidu.com/article/656db918f9300ae380249c56.html