Skip to content
New issue

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

incorrect linux_distro in docker version glances #2439

Closed
s0urcelab opened this issue Jun 1, 2023 · 4 comments · Fixed by #2473
Closed

incorrect linux_distro in docker version glances #2439

s0urcelab opened this issue Jun 1, 2023 · 4 comments · Fixed by #2473

Comments

@s0urcelab
Copy link

Describe the bug
i use docker version glances on my Debian PC, system.linux_distro shows 'Alpine Linux 3.17.1'

To Reproduce
Steps to reproduce the behavior:
web api /api/3/all field system.linux_distro

Expected behavior
should give 'Debian Linux xxxx'

Screenshots

Environement (please complete the following information)

  • Operating System (lsb_release -a or OS name/version): Debian GNU/Linux 11 (bullseye)
  • Glances & psutil versions: `To be completed with result of: nicolargo/glances:latest-full
  • How do you install Glances (Pypi package, script, package manager, source): docker
  • Glances test (only available with Glances 3.1.7 or higher):
@nicolargo
Copy link
Owner

When using the Glances Docker, it runs on "Alpine Linux" OS. If you want to fake the information and show the host operating system you can add the following option to the docker exec command line: -v /etc/os-release:/etc/os-release:ro

@s0urcelab
Copy link
Author

When using the Glances Docker, it runs on "Alpine Linux" OS. If you want to fake the information and show the host operating system you can add the following option to the docker exec command line: -v /etc/os-release:/etc/os-release:ro

mount volume works, but i think this behavior is a little weird.

@RazCrimson
Copy link
Collaborator

@s0urcelab
This would be the expected behavior if you run official glances images through docker.

Maybe we could add this volume mount detail in the docker readme file?

@s0urcelab
Copy link
Author

@RazCrimson Good advice! It would be helpful if we can add this description in document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants