Skip to content

Allow for escaping docker:label #137

@Smithx10

Description

@Smithx10

While working on https://github.com/Smithx10/virtual-kubelet, I came across a situation where I would like for all instances provisioned to have a certain set of shared tags whether they are provisioned via sdc-docker or sdc-cloudapi.

The Docker API is only aware of labels, which are stored in Triton as tags prefixed with docker:label:

I was hoping that we could add to docker a way to escape docker:label: and set tags directly, this will save me from having to make 2 api calls, a Create, and then an Apply tag.

Implementation Idea:
I noticed that the label "triton.cns.services" was applied without the docker:label prefix. I imagine we could do something like the following to escape it...

--label no.prefix.mytag=mytagvalue 

Which would result in the following tag:

mytag=mytagvalue 

Instead of

docker:label:mytag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions