@bow.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', is_flag=True, help="<STR_LIT>")<EOL>@click.argument('<STR_LIT:name>')<EOL>def create(name, image, bare):
if bool(bare) == bool(image):<EOL><INDENT>raise click.UsageError("<STR_LIT>")<EOL><DEDENT>path = get_project_path(name)<EOL>print("<STR_LIT>" % path)<EOL>try:<EOL><INDENT>os.mkdir(path)<EOL><DEDENT>except FileExistsError:<EOL><INDENT>die("<STR_LIT>" % path)<EOL><DEDENT>if not bare:<EOL><INDENT>print("<STR_LIT>" % image)<EOL>client = docker.Client()<EOL>try:<EOL><INDENT>client.create_container(<EOL>image=image,<EOL>name=get_container_name(name),<EOL>hostname=name,<EOL>working_dir='<STR_LIT>',<EOL>command='<STR_LIT>',<EOL>tty=True,<EOL>volumes=['<STR_LIT>'],<EOL>host_config=client.create_host_config(binds={<EOL>path: {'<STR_LIT>': '<STR_LIT>', '<STR_LIT>': '<STR_LIT>'}<EOL>})<EOL>)<EOL><DEDENT>except docker.errors.APIError as error:<EOL><INDENT>die(error.explanation.decode())<EOL><DEDENT><DEDENT>enter_project(name)<EOL>
Create a new project.