Open boskiv opened 5 years ago
Hi @boskiv
No, we don't have this option.
The app checks all $PATH
paths and looking for docker-compose
file.
The solutions 1) Check all export directories.
echo $PATH
Set your custom directory first than /usr/local/bin
.
Finally result should be some as
...:/YOUR_CUSTOM_DIR:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/...
2) Set symlink from your custom docker-compose to default bin directory
ln -sf /CUSTOM_DIR/docker-compose /usr/local/bin/docker-compose
Unfortunately, I can't say anything about Windows but I think you can reproduce it similarly.
But in your log the problem isn't relating with the path of Docker Compose.
Yeah, thanks. I will try to check my envs.
This how it's look on windows. docker-compose works fine from powershell or cmd. envs are set right. docker, docker-compose, docker-machine was installed with choco
choco install docker docker-compose docker-machine
How can I check Environment that App use ? I have installed App for User only, not for all. Hope it helps.
Ok, I have run process explorer and there is an env:
Looks like docker-compose under path
I'll try to check your case. I can't do it now because I don't have a Windows PC. I will definitely let you know results.
I'm using Virtual Machine with Windows in cases like this.
So, Do I understand you that 1) You've Virtual Machine with Windows 10? 2) You're using Docker Machine in the VM?
Yes. I have Paralles VM with Windows 10. I have Orace virtualbox inside Windows 10. I'm testing solution for our developers more convenient to work with docker. So I have this environment. But It should not be a problem because of isolation. Nested virtualisation enabled of cause. And docker also work from command line.
Do you use Docker for Windows or Docker toolbox ?
I think nothing of it. I have install docker from choco package manager. There is just docker client, docker-machine and docker-compose binaries
So we reproduced your problem and found the same issues. You didn't start Docker daemon. https://github.com/docker/toolbox/issues/725
But unfortunately, I can't say anything about your case with choco package manager. We'll try to check it a bit later. At the moment I can recommend to install and use the latest version Docker For Windows.
Huh. We found and fixed one bug which reproduced with Docker Toolbox only for Windows. This is bug very similar with your case, but I can't promise it will able to resolve your issue.
Thanks, Igor. I will try, but I have docker daemon inside my Oracle docker-machine created VM, why I need to have one on Windows. And I have docker-compose up working in PowerSHell without local daemon started
PS C:\Users\i_skiridomov> docker-machine start
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Machine "default" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
PS C:\Users\i_skiridomov> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
PS C:\Users\i_skiridomov> cd .\Documents\
PS C:\Users\i_skiridomov\Documents> cd .\Demo\
PS C:\Users\i_skiridomov\Documents\Demo> docker-compose up
Creating network "demo_default" with the default driver
Pulling mysql (mysql:)...
latest: Pulling from library/mysql
f17d81b4b692: Pull complete
c691115e6ae9: Pull complete
41544cb19235: Pull complete
254d04f5f66d: Pull complete
4fe240edfdc9: Pull complete
0cd4fcc94b67: Extracting [========================> ] 6.029MB/12.09MB
8df36ec4b34a: Download complete
720bf9851f6a: Download complete
9ffdbf5f677f: Download complete
a403e1df0389: Waiting
4669c5f285a6: Waiting
Building images also works fine
PS C:\Users\i_skiridomov\Documents\Demo> docker-compose up
Building custom
Step 1/1 : FROM nginx
latest: Pulling from library/nginx
f17d81b4b692: Already exists
d5c237920c39: Pull complete
a381f92f36de: Pull complete
Digest: sha256:b73f527d86e3461fd652f62cf47e7b375196063bbbd503e853af5be16597cb2e
Status: Downloaded newer image for nginx:latest
---> dbfc48660aeb
Successfully built dbfc48660aeb
Successfully tagged demo_custom:latest
WARNING: Image for service custom was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Starting demo_mysql_1 ... done
Creating demo_custom_1 ... done
Attaching to demo_mysql_1, demo_custom_1
mysql_1 | error: database is uninitialized and password option is not specified
mysql_1 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
demo_mysql_1 exited with code 1
All I need to works with is env:
PS C:\Users\i_skiridomov\Documents\Demo> Get-ChildItem env:
Name Value
---- -----
DOCKER_CERT_PATH C:\Users\i_skiridomov\.docker\machine\machines\default
DOCKER_HOST tcp://192.168.99.100:2376
DOCKER_MACHINE_NAME default
DOCKER_TLS_VERIFY 1
PS C:\Users\i_skiridomov\Documents\Demo>
So, I think this is the bug which we fixed yesterday. I'll try to build a temporary build. Will you able to check it?
Sure I will, thanks.
Please write me to igor@dockstation.io I'll send you a pre-release version for test.
Hello @igor-lemon,
Could this issue be the same as the one reported by jacoblyw? I am having the same issue KeyError: 'PATH'
on OS 10.14.
Hi @guzart. I'll try to find a solution today.
Is there way to choose executable file for docker-compose on Windows Or path (venv) to use it on OSX ? Because I have on OSX an error
On WIndows it drop an error