• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Unique identifier in container
#1
Hi!

I was wondering what the best way to obtain an unique identifier from within a docker container running on the netPI core 3. I'm using the netpi raspbian image and use the command 
Code:
cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2

to read the serial, similar as I would on a regular Raspberry Ri. Is this id unique to the hardware or does it belong to the container? Is there any other unique identifier for the netPI core 3 available which is better than the one i obtain? Also, i notices that the id which you get by doing this contains the 6 last characters of the MAC-addr of the device and two additional characters which seem random. Are these random or is there a logical way to figure them out without using the command above?
Thank you!
  Reply


Messages In This Thread
[SOLVED] Unique identifier in container - by mmolder - January-23rd-2019, 02:56 PM
RE: Unique identifier in container - by Armin@netPI - January-23rd-2019, 03:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TOSILOCK for CONTAINER COswald 3 2,269 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,597 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,271 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  OpenVPN container Armin@netPI 0 1,668 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,705 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,756 November-25th-2020, 01:06 PM
Last Post: zen89
  NPIX-4DI4DO and NetPi-Nodered container issues alhammi 4 7,909 November-16th-2020, 01:35 PM
Last Post: alhammi
  Get host MAC via REST API inside container bschandra 4 3,739 November-16th-2020, 09:26 AM
Last Post: bschandra
  Exporting and importing container images Armin@netPI 3 3,189 May-20th-2020, 11:24 AM
Last Post: COswald
Exclamation Creating a container Linnerz 6 4,589 March-6th-2020, 02:47 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)