change the default value of user to null (#51376)

Change the default value of user from root to null to conform the current Docker behavior and the current Ansible documentation.
pull/51408/head
Chanwit Kaewkasi 6 years ago committed by ansibot
parent cc618b00a5
commit c6b3f2c848

@ -1047,7 +1047,7 @@ class DockerServiceManager():
update_config_data = raw_data['Spec']['UpdateConfig']
ds.image = task_template_data['ContainerSpec']['Image']
ds.user = task_template_data['ContainerSpec'].get('User', 'root')
ds.user = task_template_data['ContainerSpec'].get('User', None)
ds.env = task_template_data['ContainerSpec'].get('Env', [])
ds.command = task_template_data['ContainerSpec'].get('Command')
ds.args = task_template_data['ContainerSpec'].get('Args', [])

Loading…
Cancel
Save