You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sry, Is there a way to set several parameters at once such as " -t -d --privileged --device /dev/snd --restart=always "and etc, of course I have realized the existing function such as RestartPolicy, but sometimes it make things complicated.
Looking forward to your recovery, tks!
The text was updated successfully, but these errors were encountered:
forfcw
changed the title
Is there a way to set several parameters?
Is there a way to set several parameters at once?
Sep 22, 2021
Hi, you may set all those parameters when using layer 1 (commands). Both restart and device is not present on the current FluentAPI (ContainerBuilder).
If you need to use --device and --restart, at the moment, please use the ContainerCreateParams and use that instance on e.g. Create (an extension function that resides in the namespace Ductus.FluentDocker.Commands).
In the ContainerCreateParams you will find all the parameters that you mention such as ContainerCreateParams.RestartPolicy, ContainerCreateParams.Privileged and ContainerCreateParams.Device.
If you really need to have them on the FluentAPI builder (i.e. it is frequently used). Please let me know and I'll add them.
sry, Is there a way to set several parameters at once such as " -t -d --privileged --device /dev/snd --restart=always "and etc, of course I have realized the existing function such as RestartPolicy, but sometimes it make things complicated.
Looking forward to your recovery, tks!
The text was updated successfully, but these errors were encountered: