hello everyone, I'm new to meltano and docker. ex...
# docker
s
hello everyone, I'm new to meltano and docker. excuses for my stupid questions😀....but if I run on docker windows desktop: docker run --name Meltano -v $(pwd)/projects -w /projects meltano/meltano init my-meltano-project... Installation runs correctly, but I can not find the installaltion on $(pwd). Can someone help me in the right direction?
d
@stephan The value of your
-v
volume argument should be:
$(pwd):/projects
Copy code
docker run --name Meltano -v $(pwd):/projects -w /projects meltano/meltano init my-meltano-project
That way you're mounting the current working directory into the container at
/projects
, which you're then also using as the working directory with
-w
. Right now, you're mounting
$(pwd)/projects
(the
projects
directory inside your working directory) inside the container at that same path (
$(pwd)/projects
), since no mapping is specified with
:
.
s
C:\Users\data>docker run --name Meltano -v $(pwd):/projects -w /projects meltano/meltano init my-meltano-project 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 too quick... I still get this response..
It worked with an extra back slash (/$(pwd):/projects), but still can not find out, where it is installed. See attached
d
@stephan What shell are you running this on?
$(pwd)
will only work on bash-like shells, not Windows command.exe
s
hi Douwe, I went another way. installed linux. then I got it working well. thanks!