What's new in v3.0.0
We've improved the defaults for volume and checkout mounting, and introduced a new mount-checkout
option. And we've also added a new --init
option that is enabled by default, to help prevent zombie processes.
New mount-checkout
option and volume
changes
In v2.0.0 we made it so the checkout directory ($PWD
) would be mounted into your container only if you didn't add volume mounts using the volumes
option, and if you wanted to disable checkout mounting you set volumes: false
.
This turned out to be very confusing behaviour, so instead we've added a new dedicated option mount-checkout
which defaults to true
, even if you use the volumes
option. The volumes
option also no longer takes a boolean, you can now only set a list of volumes you'd like mounted.
If you want to disable mounting of the checkout directory, you can set mount-checkout: false
New --init
option
Docker now has an --init
option](https://docs.docker.com/engine/reference/run/#specify-an-init-process), which provides a built-in process manager that signals child processes correctly on exit. We've enabled this by default, but can be disabled by setting init: false
🆙 Upgrading
If you have .:/workdir
or similar in your volumes mounts, you can remove it as the new mount-checkout
option will be applied by default. Make sure to set the workdir
option to the directory you want it mounted to in the container.