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:
parent
cc618b00a5
commit
c6b3f2c848
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue