Skip to content

Commit

Permalink
run bash by default
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandGouny committed Jan 13, 2016
1 parent 3842913 commit 1db0d20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions image/tool/run
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,7 @@ def run_single_process_container(args):

def run_no_process_container(args):
if len(args.main_command) == 0:
error("Error: This container has no process you must pass a main command.")
sys.exit(1)
args.main_command=['bash'] # run bash by default

exit_status = run_foreground_process(args.main_command)
sys.exit(exit_status)
Expand Down

0 comments on commit 1db0d20

Please sign in to comment.