Start the OpenStack CLI
The OpenStack CLI startup process depends on how you have configured OpenStack API authorization:
- if you configured authorization using the operating system - run the OpenStack CLI in the operating system;
- if you configured authorization in the Docker container - run the OpenStack CLI in the Docker container.
Start the OpenStack CLI in the OS
Linux/macOS
Windows
-
Open the CLI.
-
Apply the environment variables from the RC file:
source <rcfile_name>Specify
<rcfile_name>is the name of the RC file you downloaded to configure the OpenStack CLI. The defaultis rc.sh. -
Enter the OpenStack password - the password of the service user for whom you downloaded the RC file.
-
Verify that the OpenStack CLI is running. To do this, open the list of cloud servers:
openstack server listIf cloud servers have been created in the pool and project specified in the variables, their list will appear in the command output. If no servers have been created yet, the command output will be empty.
Run the OpenStack CLI in a Docker container
-
Open the CLI.
-
Start the Docker container:
docker run -ti --rm -v $(pwd):/workspace osc:dalmatian -
Apply the environment variables from the RC file:
source <rcfile_name>Specify
<rcfile_name>is the name of the RC file you downloaded to configure the OpenStack CLI. The defaultis rc.sh. -
Enter the OpenStack password - the password of the service user for whom you downloaded the RC file.
-
Verify that the OpenStack CLI is running. To do this, open the list of cloud servers:
openstack server listIf cloud servers have been created in the pool and project specified in the variables, their list will appear in the command output. If no servers have been created yet, the command output will be empty.
-
After working with the OpenStack CLI, log out of the Docker container:
exit