sayou
sayou

Reputation: 913

Docker : invalid reference format on composer install

I want to install the vendor folder of a project on docker, and I try to use this command:

winpty docker run --rm --interactive --tty \ --volume $(pwd):/app \ composer install

but after running it, I get the error message

C:/Program Files/Docker/Docker/Resources/bin/docker.exe: invalid reference format.

is there any solution to fix it?

Upvotes: 0

Views: 870

Answers (1)

Sarosh Khatana
Sarosh Khatana

Reputation: 561

In powershell you should use ${pwd} instead of $(pwd)

Upvotes: 3

Related Questions