A couple of things to note before we start:
- My Docker installation directory is
- I go under the assumption that you already have git for Windows installed somewhere on your machine, either independently, or by having had it come bundled with cmder or Docker itself.
Adding the Docker terminal to cmder is pretty straightforward. Start by selecting the “Setup Tasks” option in the cmder toolbar
This will bring up “Settings” with the “Tasks” option already active (if it is not, simply select it from the left-hand pane under “Startup”.
- Click on the little ‘+’ under the “Predefined tasks(command groups)” (where your existing tasks live)
- Rename the task to “docker” (or whatever you like)
- Provide the icon path under “Task parameters”. In case it is not clear from the below gif, this path should start with /ico followed by the path to the ico file (on my machine, the file is in my base Docker installation directory, remember the double quotes!)
- Add the startup commands. The paths will obviously be different for your machine and, VERY NB, do not neglect all the double quotes (you might even need more in case you have paths with spaces)
"E:\Installs\Git\bin\bash.exe --login -i "E:\Installs\DockerToolbox\start.sh" -new_console:d:"E:\Installs\DockerToolbox""
- Save your settings.
The Docker console should now be available to you as any other
Fire it up and enjoy Docker from within cmder!