Hi. We noticed that container names format changed when using vanilla instead of the raw_exec. driver. With the raw_exec, we had custom container names that were easy to identify e.g.
mysql-test-0-1-mysql-master-mysql-test-0-1-b383cf55
But upon switching to Vanilla, the container name looks something like this:
mysql-master-d8044854-beec-50a4-8a41-cdc9c5b54734
Since we have multiple containers sharing the same host, it makes it inconvenient to identify container is for what. Below is the nomad spec:
job:
name: mysql-test-0-1
meta:
cluster_name: test-0
exporter_db_host: mysql-master-mysql-test-0-1-1003
mysql_port: 3306
group:
mysql-master:
task:
mysql-master:
resources:
cpu: 160
memory: 40960
roam: 0
id: "${NOMAD_TASK_NAME}-mysql-test-0-1"
docker:
image: var/lib/mysql
tag: "5.7.33"
constraints:
- attribute: "${meta.vlan}"
operator: "set_contains"
value: "1001"
- attribute: ${meta.db}
operator: "set_contains"
value: 'mysql-test-0-1'
How can we make the vanilla driver to display the container the name the same way the raw_exec driver does to make it convenient for us to identify which container is what?