Skip to content

initial support for docker --mount syntax

Daniel Holth requested to merge danielholth/gitlab-runner:docker-mounts into master

What does this MR do?

This adds proof of concept support for the docker --mount syntax. This is the currently recommended syntax for doing all kinds of mounts with docker: volumes, tmpfs, and bind mounts. Differences include that the target of a bind mount must already exists, and --tmpfs supports more options for tmpfs filesystems.

Why was this MR needed?

The --mount syntax is easier and more flexible than the older syntaxes.

Does this MR meet the acceptance criteria?

Right now this MR is just a minimal addition without unit tests.

What are the relevant issue numbers?

Fixes #25491

Merge request reports