Deploy AIStor as a Container
This section documents steps for running AIStor as a container.
Procedure
-
Pull the latest stable image of AIStor Server
-
Create a data directory for use with the server
The following example uses the path
$HOME/minio/data
. Change this path to reflect the folder, storage volume, or drive intended for use with the server.makedir -p $HOME/minio/data
Later steps mount paths under
$HOME/minio
to the/mnt/
directory in the container. -
Retrieve your License File.
Log into SUBNET and select the License button in the Deployments view.
The Account License modal
Download the file to
$HOME/minio/minio.license
for use in later steps. -
Create the environment file
Create the following file at
$HOME/minio/config
. The server uses this file as the source of all environment variables.The following example provides the minimum set of configuration settings required to start the server using the default username and password
minioadmin:minioadmin
. The file paths given are local to the container.# Copy the value of your SUBNET license below MINIO_LICENSE="/mnt/minio/minio.license" # Define the expected topology of the deployment # # The following is a single-node single-drive deployment pattern # appropriate for workloads where distributed performance and # high availability are not requirements. # # Single-Node Single-Drive Startup MINIO_VOLUMES="/mnt/minio/data" # Set all Server command-line options # # Use this envvar to add other CLI parameters to the `minio server` command. MINIO_OPTS="" MINIO_CONFIG_ENV_FILE="/mnt/minio/config"
-
Run the AIStor Server in a container
The following examples mount the
$HOME/minio/
folder to/mnt/minio
in the container.The output of the
logs
command includes the startup message from the AIStor Server. To access the server, use thelocalhost
or127.0.0.1
address on your local host machine. -
Connect to the Deployment
You can connect to the deployment using the built-in AIStor Server console in a browser, by using the MinIO
mc
commandline tool, or by using an S3-compatible SDK: