We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
今はnodenameの中をコンテナIDとしているが、ここにはhostnameが入る
docker run -d -p 8079:80 --rm --hostname nginx_t2 --name nginx_t2 nginx
のようにすると
{"level":"info","ts":1625712068.886926,"caller":"cmd/router.go:62","msg":"a process start to listen. container_id: nginx_t2, Pid: 107349, Comm: nginx, Protocol: TCPv4, LocalPort: 80"}
nginx_2となる。これはコンテナIDではない
マイナーなケースだしコンテナ名も一意なはずなので対応方法はありそう 余裕があればやる
The text was updated successfully, but these errors were encountered:
https://github.com/moby/moby/blob/2773f81aa5e9e34733675a7aa7e4219391caccb0/daemon/container.go#L199-L204
でコンテナIDの先頭12に切り取ってhostnameとしていた
Sorry, something went wrong.
https://github.com/lockc-project/lockc/blob/main/lockc-ebpf/src/proc.rs
この実装をパクれば解決できる
ken109
No branches or pull requests
今はnodenameの中をコンテナIDとしているが、ここにはhostnameが入る
のようにすると
nginx_2となる。これはコンテナIDではない
マイナーなケースだしコンテナ名も一意なはずなので対応方法はありそう
余裕があればやる
The text was updated successfully, but these errors were encountered: