K
K
kot25662018-04-01 20:59:23
Windows Server
kot2566, 2018-04-01 20:59:23

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

Но команда 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.

Как запустить docker для доступа из любого места?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kot2566, 2018-10-26
@kot2566

Поздно, конечно, но вот моё найденное решение:
Дописывать к каждой команде docker фразу "docker-machine ssh default"
Например:

docker-machine ssh default docker run -it imageName

Сергей Тополов, 2018-10-25
@topus009

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 question

Ask a Question

731 491 924 answers to any question