Skip to content

Binds during container creation #80

@zordark

Description

@zordark

Good day,
In the older versions, you had the possibility to provide a list of Binds (mounts) when a container was created.
So I could mount some files or folders to a container (eg, it is very useful with databases when you have a sample data set, or when you need to provide some configs and etc.)
It was something like this

protected override CreateContainerParameters GetCreateContainerParameters(string[] environmentVariables)
{
    var parameters = base.GetCreateContainerParameters(environmentVariables);
    if (_binds != null && _binds.Any())
        parameters.HostConfig.Binds = _binds;

    return parameters;
}

I updated to the latest version and now I don't see this option, or maybe it was moved somewhere else
Could you provide some directions on how to do this now?
Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions