Skip to main content

get data-image


You can review your Data Images by using the get command.


$ spawnctl get data-images
$ spawnctl get data-image <ImageName[:Tag]_Or_ImageID>


In this tutorial we will create a Data Image, then get the Data Image. We will then review the Data Image information.

As a prerequisite you should've followed the instructions to install spawnctl

  1. Create a file development.yaml with your Data Image specifications.

    sourceType: empty
    name: dev
    engine: postgresql
    version: 11.0

    In this case we want to create a PostgreSQL Data Image that is completely empty and is named dev.

  2. Run the following command to create a Data Image.

    $ spawnctl create data-image -f ./development.yaml
    Data image 'dev' created!
  3. You can verify your Data Image was properly created by running the following command.

    $ spawnctl get data-images
    ID Name Tags Engine Status CreatedAt Teams
    10001 dev PostgreSQL:11.0 Completed 3 hours ago spawn:team1

Extra information#

To see extra information on images, add the flag --output wide or use the alias -o.

$ spawnctl get data-images --output wide
ID Name Tags Engine SourceType Status CreatedAt Teams Owner Size
10001 dev PostgreSQL:11.0 empty Completed 3 hours ago spawn:team1 Jane Doe 29MB

Public images#

Spawn hides default public images once you have your own data images. You can show them again by passing the --public flag to the spawnctl get data-images command.