I am trying to make docker run on ConEmu by creating a task that open up Docker start.sh file usinggit bash.

Since normally docker Terminal is pointing to "C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh" ,is there any way I can make a task on ConEmu to do this? So something like this:

enter image description here


Solution 1:

In the task parameters:

/dir "C:\Program Files\Docker Toolbox"

Commands:

"%ConEmuDrive%\Program Files (x86)\Git\bin\sh.exe" --login -i -new_console:C:"C:\Program Files\Docker Toolbox\docker-quickstart-terminal.ico" "C:\Program Files\Docker Toolbox\start.sh"

Please note that I have git in Program Files (x86), and also that the -new_console parameter that references the ico is not needed. I assume you have that ico, but you can remove the whole parameter if it proves problematic, but you will be left with the Git bash icon.

Solution 2:

The posted answer didn't work for me (using Docker Toolbox 1.10.3). I chose to install Docker Bash shell during install (basically everything the installer offers).

Here's what worked for me (note the use of bash.exe):

task parameters:

/dir "C:\Program Files\Docker Toolbox"

Command:

"C:\Program Files\Git\bin\bash.exe" --login -i -new_console:C:"C:\Program Files\Docker Toolbox\docker-quickstart-terminal.ico" "C:\Program Files\Docker Toolbox\start.sh"

Solution 3:

Install docker before installing conEmu that is configured automatic.

enter image description here

Task Parameters:

/dir "%DOCKER_TOOLBOX_INSTALL_PATH%" /icon "%DOCKER_TOOLBOX_INSTALL_PATH%\docker.exe"

Start console:

"%DOCKER_TOOLBOX_INSTALL_PATH%\..\Git\usr\bin\bash.exe"-l -i "%DOCKER_TOOLBOX_INSTALL_PATH%\start.sh" -new_console:t:"Docker"