This collection of scripts is intended to be installed in the Docker
Toolbox installation directory (i.e. C:\Program Files\Docker Toolbox
),
with exception of Docker Quickstart Terminal.lnk
which is intended to
replace the shortcut that Docker Toolbox places on your desktop.
There are some gotchas when working with docker in powershell:
-
The output encoding of docker commands differ to the powershell default.
For example, when working with
docker cp
you will typically need to specify the encoding toOut-File
:docker cp demo:/demo - | Out-File demo.tar oem
(I have tried to set
$OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
without success.)
The start script is the powershell equivalent of the bash start script
(start.sh
), with some additional features.
-
Any shared folders added to the VM are automatically mounted.
This allows you to expose folders that are outside of your user's home directories on your Windows host machine to the docker host machine. The name of the shared folder will be used as the moint point (relative to
/
).
The compose script allows you to execute docker-compose
inside a
container from your Windows host as if it were a native command.
- The docker-compose image is automatically downloaded the first time the command is executed.
- The current folder is mounted and set as the working directory.
- By setting the
$Env:DOCKER_COMPOSE_VERSION
variable you can choose to build the image from any branch of the [docker/compose
] (https://github.com/docker/compose) repository. (Default:release
.)
You can do something to run on Git-Shell instead of powershell?