get data-container
#
OverviewYou can review your data container by using the get
command.
#
CommandsYou can change the output format when getting data containers to return more information. -o json
will print the data container information out as JSON, including connection details (hostname, port, username, password). This makes it easier to consume Spawn as part of a startup script for an application as you can dynamically configure database connection details.
If you are an admin of your organisation, you can use the --org
command to check all data-containers created within your organisation.
#
ExamplesGet all data-containers you own:
Get specific data-containers you own:
Get all data-containers within your organisation:
Get specific data-container within your organisation:
#
TutorialIn this tutorial we will create a data image, then create a data container from that image. We will then review the data container information.
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 by running the following command.
Create a data container from the newly created data image.
You can verify your data container was properly created by running the following command.
You can also get only that specific container.