title: Change default container names which have been created via a pod configuration file in kubernetes
body: <p>I have a pod configuration file with which I am able to create a pod that runs some containers with specific names. </p>
  
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
    name: hazelcast
  spec:
    restartPolicy: Never
    containers:
  - name: bkregasp01
    image: hazelcast/hazelcast
    ports:
      - containerPort: 5701
    env:
      - name: JAVA_OPTS
        value: -Dhazelcast.rest.enabled=true
  - name: bkregasp05
    image: hazelcast/hazelcast
    ports:
      - containerPort: 5701
    env:
      - name: JAVA_OPTS
        value: -Dhazelcast.rest.enabled=true
  </code></pre>
  
  <p>Once I create this pod I can check the containers created via the command </p>
  
  <pre><code>docker ps -a 
  </code></pre>
  
  <p>And I can see that the names have been changed: </p>
  
  <pre><code>NAMES
  k8s_bkregasp01_hazelcast_default_acf5ebb0-8f2b-11e8-b2f0-0800275a6976_0
  k8s_bkregasp05_hazelcast_default_acf5ebb0-8f2b-11e8-b2f0-0800275a6976_0
  </code></pre>
  
  <p>How can I avoid this so that the containers keep their original names specified in the configuration file?</p>