k8s and docker tips
原文链接 http://www.k8s.tips/tech/2017/05/11/k8s_docker_tips.md/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。
Change Docker Imange location
Edit /etc/docker/daemon.json
in Ubuntu:
{
"live-restore": true,
"graph": "/data/docker"
}
Kuberentes Erros
In following erro may because of changing docker image location, no solution for now:
3m 3m 1 kubelet, 9.111.143.205 Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "POD" with RunContainerError: "addNDotsOption: ResolvConfPath \"/data/docker/containers/cdc30b87403ef938964754e34ad3ce5b4c1ceb950a0af72ff1e531c235eaad21/resolv.conf\" does not exist"