Skip to content

How to instantiate a docker container using an image name and tag #83

@amro-albaali-vention

Description

@amro-albaali-vention

Is it possible to create a Docker container using a specific Docker image tag?

That is, given a Docker image MyImage with multiple tags Tag1, Tag2, etc. How can I run

Docker.container
.create({
   Image: MyImage,
   name: my_container,
   ...

I noticed there isn't a Tag key to pass to create. Furthermore, I tried using MyImage:Tag1 for the Image field, but that didn't seem to work.

Is there a work around for this issue?

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