1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Chanwit Kaewkasi 2019-01-29 03:38:02 +07:00 committed by ansibot
parent cc618b00a5
commit c6b3f2c848

View file

@ -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', [])