How to add CTID to CT bash prompt?

Ah you want some form of automated procedure, sorry for the misunderstanding. The easiest way is obviously adding the id on creation to the hostname or leaving it blank which defaults to the CTID. Otherwise there is no straight forward way to get the CTID from within the CT.
 
Ah you want some form of automated procedure, sorry for the misunderstanding. The easiest way is obviously adding the id on creation to the hostname or leaving it blank which defaults to the CTID. Otherwise there is no straight forward way to get the CTID from within the CT.
I thought there were a variable of something like that in order to get it. So is there nothing to do?
 
Not out of the box. This is an information the container normally does not need/should know about. Changing/not setting the hostname is your best shot afaik.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!