Skip to content

Docker container example not working on Windows #3254

Open
@polkx

Description

@polkx

Version(s)
scala-cli 1.5.1
scala 3.5.1
Docker-desktop 4.34.3
Windows 11

Describe the bug
I tried to run this example on Windows.
When I run the command
scala-cli --power package --docker HelloDocker.scala --docker-image-repository hello-docker
everything works
but when I want to run the image (docker run hello-docker:latest) I get the error:

/app: 1: @echo: not found
: not found
: not found
: not found
/app: 5: @REM: not found
/app: 6: Syntax error: "(" unexpected (expecting "then")

I don't know if this is a problem with my computer or a problem with running it on Windows.
I'll add, that it works fine on Mac OS.

Could someone check if it works on Windows and why I get this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdockerIssues tied with docker integration.package commandrequires scopingIssue requires a spike to revalidate it and assign an up-to date scope for its requirements.windowsWindows-specific issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions