Sha256: 72d1c646327130b10b637f976cc8607af192e2cd242c39f987941cceaffef6c5
Contents?: true
Size: 1.19 KB
Versions: 36
Compression:
Stored size: 1.19 KB
Contents
It is sometimes handy to grab the name of the Docker image that was just generated. Let's say ou needed the image name so you can feed it into another script that you have. The command `ufo docker name` returns the image of the most recently built Docker image. ## Examples ufo docker build # stores the docker image name in the .ufo/tmp/state folder ufo docker name # fetches image name from .ufo/tmp/state folder An example image name would look something like this: `org/repo:ufo-2018-02-15T19-29-06-88071f5` Note, the `.ufo/tmp/state` folder is an internal data folder and it's structure can change in future releases. If you want to generate a brand new name for whatever purpose, you can use the `--generate` flag. The generate does not write to the `.ufo/tmp/state` folder. It only generates a fresh name to stdout. If you run it multiple times, it will generate new names. You can notice this by seeing that the timestamp will always update: ufo docker name --generate # example: org/repo:ufo-2018-02-15T10-00-00-88071f5 ufo docker name --generate # example: org/repo:ufo-2018-02-15T10-00-08-88071f5 ufo docker name --generate # example: org/repo:ufo-2018-02-15T10-00-16-88071f5
Version data entries
36 entries across 36 versions & 1 rubygems