Docker su Windows
cirolaferrara opened this issue · 2 comments
cirolaferrara commented
OS: Windows 10 Pro
Docker: Docker version 20.10.2, build 2291f61
Eseguite istruzioni del README ai capitoli:
Installazione / Docker
Al comando
docker run -p 8088:8088 -v $(pwd)/conf:/app/conf italia/spid-testenv2
Ottengo
docker: Error response from daemon: create $(pwd)/conf: "$(pwd)/conf" 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'.
Al comando
docker run -p 8088:8088 -v ./conf:/app/conf italia/spid-testenv2
Ottengo
standard_init_linux.go:219: exec user process caused: no such file or directory
MarcoBevilacqua commented
Ciao, io ho risolto dando il path completo al momento del run
docker run -p 8088:8088 -v C:\work\spid-testenv2\conf:/app/conf italia/spid-testenv2
lr1x commented
Ciao,
io ho risolto convertendo gli EOL nel file entrypoint.sh da CR/LF a solo LF. in sostanza da formato Windows a Unix-like.