Skip to content

Spaces in executable name results in error #11

Description

@Nikey646

When you creating a project with a space in the name, it results in the docker run -it {tag} command failing due to this line not escaping the space correctly.

Test case:

$ mkdir "my app"
$ cd "my app"
$ dotnet new console

Adding the Dockerize tool to the .csporj

$ dotnet dockerize -t myapp
$ docker run -it myapp

produces the result of

/bin/sh: 1: /projectBinaries/my: not found

Manually modifying the dockerfile and rebuilding it to have an \ before any spaces results in the docker run command working as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions