Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
lsb_release del sistema operativo host en un Docker

Quiero obtener el sistema operativo que estoy ejecutando dentro de un Docker.

Así es como se ve mi docker-compose y heredo de la imagen python:2.7

 version: '2' services: robot-configuration-interface: build: '.' restart: always network_mode: 'host' ports: - 8000:80 environment: - REDIS_HOST=localhost - DEBUG=true volumes: - ~/logs/fetchcore-server:/var/log/supervisor - /var/run/docker.sock:/var/run/docker.sock - /opt/ros/indigo:/opt/ros/indigo - /etc/environment:/etc/environment - /etc/NetworkManager/system-connections/:/etc/NetworkManager/system-connections/ - /lib:/lib - /usr/lib/:/usr/lib - /usr/bin/:/usr/bin/ - /var/run/:/var/run/ privileged: true user: root

El comando lsb_release -d devuelve Debian GNU/Linux 8.7 (n/a) en lugar de Ubuntu 14.04.5 LTS aunque estoy montando /usr/bin

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

LSB está un poco obsoleto/ignorado en las distribuciones basadas en Debian, y el archivo no está presente en las imágenes de Docker de las distribuciones más populares.

Ahora se prefiere /etc/os-release. Puede ver que este archivo está presente en las imágenes de Docker de muchas distribuciones (incluso Alpine), lo que no ocurre con /etc/lsb-release.

over 4 years ago · Santiago Trujillo Report

0

La respuesta es montar /etc/lsb-release en los volúmenes.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!