日志重定向
docker logs ea7164acad38 > kube-proxy.log 2>&1
docker logs ea7164acad38 >& kube-proxy.log
直接查询到docker的日志目录
docker inspect --format='{{.LogPath}}' ea7164acad38
/var/lib/docker/containers/ea7164acad38db0c0ec4ac0e878b12d0750bd9b6a715c63b4121d6a6334abcc6/ea7164acad38db0c0ec4ac0e878b12d0750bd9b6a715c63b4121d6a6334abcc6-json.log
# vim /var/lib/docker/containers/ea7164acad38db0c0ec4ac0e878b12d0750bd9b6a715c63b4121d6a6334abcc6/ea7164acad38db0c0ec4ac0e878b12d0750bd9b6a715c63b4121d6a6334abcc6-json.log