@@ -308,7 +308,8 @@ def __call__(self, parser, namespace, values, option_string=None):
308308 g_dev .add_argument ('-e' , '--env' , action = 'append' , nargs = 2 , metavar = ('ENV_VAR' , 'value' ),
309309 help = 'Set custom environment variable within container' )
310310 g_dev .add_argument ('-u' , '--user' , action = 'store' ,
311- help = 'Run container as a given user/uid' )
311+ help = 'Run container as a given user/uid. Additionally, group/gid can be'
312+ 'assigned, (i.e., --user <UID>:<GID>)' )
312313 g_dev .add_argument ('--network' , action = 'store' ,
313314 help = 'Run container with a different network driver '
314315 '("none" to simulate no internet connection)' )
@@ -407,6 +408,9 @@ def main():
407408 command .extend (['-v' , ':' .join ((opts .bids_dir , '/data' , 'ro' ))])
408409 main_args .append ('/data' )
409410 if opts .output_dir :
411+ if not os .path .exists (opts .output_dir ):
412+ # create it before docker does
413+ os .makedirs (opts .output_dir )
410414 command .extend (['-v' , ':' .join ((opts .output_dir , '/out' ))])
411415 main_args .append ('/out' )
412416 main_args .append (opts .analysis_level )
0 commit comments