second-state / wasmedge-nodejs-starter

A template project to run Rust functions in Node.js through the Second State WebAssembly engine.
https://www.secondstate.io/articles/getting-started-with-rust-function/
161 stars 410 forks source link

[secondstate/ssvm-nodejs-starter Error] Error response from daemon #14

Open lQoQl opened 4 years ago

lQoQl commented 4 years ago

my window 7 :

C:\>docker pull secondstate/ssvm-nodejs-starter:v1

v1: Pulling from secondstate/ssvm-nodejs-starter
e6ca3592b144: Already exists
534a5505201d: Already exists
990916bd23bb: Already exists
f6ca06dad480: Pull complete
21d3647ab116: Pull complete
3cdfe5aeeed1: Pull complete
Digest: sha256:cc0faaf7e5a5435602a03be41b5f286afcfdf5aa2f34339c1f9a0aaa85b31bf6
Status: Downloaded newer image for secondstate/ssvm-nodejs-starter:v1

C:\>docker run -p 3000:3000 --rm -it -v $(pwd):/app secondstate/ssvm-nodejs-starter:v1

docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.

Sorry I'm using Rust for the first time, why this error?

juntao commented 4 years ago

In Linux, $(pwd) refers to the current working directory. You will need to use the equivalent windows command.

lQoQl commented 4 years ago

@juntao Well, I found some references and thank you for your answer