update data-container
#
OverviewYou can update your data containers to change their lifetime by using the update
command.
#
LifetimeYou can specify a lifetime for a data container via the lifetime
flag. This will automatically delete your data container 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 container will have an unlimited lifetime, and will only be deleted if you explicitly request it.
#
OrganisationsIf you are an admin of your organisation, you can use the --org
command to update data-containers that are part of your organisation.
#
CommandsTo rename an existing data container use the --name
option:
#
TutorialIn this tutorial we will create a data container with an unlimited lifetime, then update it to expire in 2 hours.
As a prerequisite you should've followed the instructions to install spawnctl and created a data image
Create a data container from a data image.
You can verify your data container was properly created by running the following command.
Run the
update
command to change the lifetime of the container to expire 2 hours from nowVerify that the lifetime of the container has been updated