Commit a059a0fc authored by Pascal Meunier's avatar Pascal Meunier

support for customizing command line prompt

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