当我通过nginx
启动docker
网络服务器并检查access.log
时,我会看到以下条目:
...
10.255.0.2 - - [10/Aug/2019:11:53:10 +0000] "GET / HTTP/1.1" 301 169 "-" "a10hm/1.0"
10.255.0.2 - - [10/Aug/2019:11:53:10 +0000] "GET / HTTP/1.1" 200 2125 "-" "a10hm/1.0"
10.255.0.2 - - [10/Aug/2019:11:53:10 +0000] "GET / HTTP/1.1" 200 2125 "-" "a10hm/1.0"
10.255.0.2 - - [10/Aug/2019:11:53:12 +0000] "GET / HTTP/1.1" 301 169 "-" "a10hm/1.0"
10.255.0.2 - - [10/Aug/2019:11:53:12 +0000] "GET / HTTP/1.1" 200 2125 "-" "a10hm/1.0"
...
只要我的docker
群正在运行,它们几乎每秒都会添加一次。我不知道他们来自哪里。他们期望在那里吗? (也许是docker
的某些功能?),有什么办法可以防止它们出现并使我的access.log
文件的大小膨胀吗?
更新:
即使我只运行docker run --publish 80:80 nginx
,我仍然可以每秒看到这些消息出现在终端中。