Thursday, July 27, 2017

Docker Terminal in ConEmu

Running Docker Quickstart Terminal is explained in this blog post|: https://jayvilalta.com/blog/2016/05/02/running-docker-toolbox-inside-conemu/
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