update data-image
#
OverviewYou can update your data images to enable or disable sharing with others, and add or remove Tags by using the update
command.
Team sharing currently only works with GitHub authentication. Microsoft authentication is not supported.
#
LifetimeYou can specify a lifetime for a data image via the lifetime
flag. This will automatically delete your data image after the time specified, in time duration format (number followed by a unit suffix. Valid units are "h", "m", "s").
If no value is provided, your data image will have an unlimited lifetime, and will only be deleted if you explicitly request it.
If there are data containers running for the expired data image, the data image will not be removed.
#
OrganisationsIf you are an admin of your organisation, you can use the --org
command to update data-images that are part of your organisation.
#
CommandsTo rename an existing data image use the --name
option:
#
TutorialIn this tutorial we will create a data image, then share the data image with a GitHub team and add a Tag.
As a prerequisite you should've followed the instructions to install spawnctl
Create a file
development.yaml
with your data image specifications.In this case we want to create a PostgreSQL data image that is completely empty and is named
dev
.Run the following command to create a data image.
You can verify your data image was properly created by running the following command.
Notice that both the tags and teams columns have no values.
Run the following command to share the image with a specified team and add a tag.
You can now verify that the image is shared with the specified team
Providing the
--remove
flag will remove the specified teams and/or tags from the data image.