Skip to content

Add option to stack image container to print only the image ID, for scripting #2645

Open
@nh2

Description

@nh2

stack Version 1.2.0.

Currently stack image container prints output like

➤ stack image container
Sending build context to Docker daemon 42.72 MB
Step 1 : FROM myregistry.example.com/asdf/asdf:tag-123
 ---> abc1234abc12
Step 2 : ADD ./ /
 ---> db1176411da0
Removing intermediate container eaeaeaeaeaea
Successfully built beefbeef1234

Could we have an option to make the output be only beefbeef1234 so that it can be used for scripting?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions