Sha256: efffaa7b3e57ce331cb6a6948484af4bbb08c1ce750be42d63b97041ac058180

Contents?: true

Size: 1.21 KB

Versions: 45

Compression:

Stored size: 1.21 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/data folder
    ufo docker name  # fetches image name from .ufo/data folder

An example image name would look something like this: `tongueroo/demo-ufo:ufo-2018-02-15T19-29-06-88071f5`

Note, the `.ufo/data` 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/data` 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: tongueroo/demo-ufo:ufo-2018-02-15T10-00-00-88071f5
    ufo docker name --generate  # example: tongueroo/demo-ufo:ufo-2018-02-15T10-00-08-88071f5
    ufo docker name --generate  # example: tongueroo/demo-ufo:ufo-2018-02-15T10-00-16-88071f5

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ufo-5.0.7 lib/ufo/help/docker/name.md
ufo-5.0.6 lib/ufo/help/docker/name.md
ufo-5.0.5 lib/ufo/help/docker/name.md
ufo-5.0.4 lib/ufo/help/docker/name.md
ufo-5.0.3 lib/ufo/help/docker/name.md
ufo-5.0.2 lib/ufo/help/docker/name.md
ufo-5.0.1 lib/ufo/help/docker/name.md
ufo-5.0.0 lib/ufo/help/docker/name.md
ufo-4.6.3 lib/ufo/help/docker/name.md
ufo-4.6.2 lib/ufo/help/docker/name.md
ufo-4.6.1 lib/ufo/help/docker/name.md
ufo-4.6.0 lib/ufo/help/docker/name.md
ufo-4.5.11 lib/ufo/help/docker/name.md
ufo-4.5.10 lib/ufo/help/docker/name.md
ufo-4.5.9 lib/ufo/help/docker/name.md
ufo-4.5.8 lib/ufo/help/docker/name.md
ufo-4.5.7 lib/ufo/help/docker/name.md
ufo-4.5.6 lib/ufo/help/docker/name.md
ufo-4.5.5 lib/ufo/help/docker/name.md
ufo-4.5.4 lib/ufo/help/docker/name.md