Answer the question
In order to leave comments, you need to log in
Docker toolbox, how to execute commands from a new console window?
Установлен docker toolbox.
Для запуска docker выполняю скрипт "C:\Program Files\Docker Toolbox\start.sh", либо ярлык "Docker Quickstart Terminal". Открывается новая консоль и выполнять команды можно только в этой консоли.
Но мне нужно выполнить команды из другого места (нового окна cmd/скрипта powershell).
Например, если powershell script:
& "C:\Program Files\Docker Toolbox\start.sh"
docker ps
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.36/containers/json:
system cannot find the file specified. In the default daemon configuration on Windows,
vated to connect. This error may also indicate that the docker daemon is not running.
Answer the question
In order to leave comments, you need to log in
Поздно, конечно, но вот моё найденное решение:
Дописывать к каждой команде docker фразу "docker-machine ssh default"
Например:
docker-machine ssh default docker run -it imageName
Here I have the same question. everything is complicated by the fact that I work in a company where some of the software is installed remotely and I seem to be already working partially on a virtual machine. Internet through a proxy. it was possible to register it in the config so that the packages are downloaded. with grief in half managed to install the docker toolbox. with a partial error about tlc but - the phrase - configured - was. environment paths don't work. they are there but they don't work. those. docker works if you go to the folder with it and run the executables. otherwise - I need to run docker-compose run in other directories ... maybe I can write something in the bashrc config so that I can start projects more or less acceptable or something. already read. and each reinstallation (change with admin rights) is an application to the queue ... and it has been like this for several days. at home everything was easy. help a...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question