For running docker commands inside any console I created init-docker.cmd inside c:\Program Files\Docker Toolbox\ which I added to the system PATH env. variable and I can run init-docker when I start any console.
initdocker.cmd
@echo off
IF DEFINED DOCKER_MACHINE_EXECUTING (GOTO :eod)
set DOCKER_MACHINE_EXECUTING=1
:configureDocker
FOR /f "tokens=*" %%i IN ('docker-machine env default') DO %%i
:eod
No comments:
Post a Comment