I want to attach a workspace runner into my workspace. I have windows with docker desktop so, i would like to run the runner in docker. Unfortunately the given command:
docker container run -it -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ........(continuing)
cannot be runnable in windows power shell, as it gives me back this error:
docker.exe : The command parameter was already specified.
At line:1 char:1
+ docker container run -it -v /tmp:/tmp -v /var/run/docker.sock:/var/ru ...
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [], ParameterBindingException
+ FullyQualifiedErrorId : ParameterSpecifiedAlready
My docker dektop is running fine, I can run other images perfectly.
Can anybody help what could be this error message?
Removing the curly braces around the environment variables worked for me.
Example: -e ACCOUNT_UUID=<uuid> instead of -e ACCOUNT_UUID={<uuid>}
Now I run into the next problem, my Account UUID does not get accepted: "The value provided is not a valid uuid"
Now its working on Windows.
I need the curly braces and also wrap them in quotes. My variables look like this now: -e ACCOUNT_UUID="{<uuid>}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sütő Ádám,
The Linux Docker runners have been developed for and tested in Linux environments only.
If you want to use a runner in Windows, you can set up a Windows runner instead.
Please keep in mind that Windows runners do not use Docker, they use PowerShell to run pipeline steps on your Windows machine (host device).
You can find more info here:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.