Commit 2f1809d5 authored by Pascal Meunier's avatar Pascal Meunier

use DOCKER_HOSTNAME instead of DOCKER_PROMPT

parent a059a0fc
......@@ -2174,8 +2174,8 @@ class ContainerDocker(Container):
# /etc/shadow
args += ['-e', 'etcshadow=' + user + ':!:17052:0:99999:7:::\n']
# set hostname displayed at prompt inside container
if 'DOCKER_PROMPT' in self.k:
args += ['-h', self.k['DOCKER_PROMPT']]
if 'DOCKER_HOSTNAME' in self.k:
args += ['-h', self.k['DOCKER_HOSTNAME'] + "%d" % self.veid]
else:
args += ['-h', "docker%d" % self.veid]
if 'apps' in account.groups():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment