commercialhaskell / commercialhaskell/stack

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

Open
#2,645 3 comments 0 reactions 0 assignees View on GitHub
component: docker type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.