Launch Starwhale Server with the "swcli server start" command
Prerequisitesâ
- Starwhale Client 0.6.7+
- Docker 19.03+
- Docker Compose 2.0.0+
- Operating System: Linux or macOS
If you are unsure whether your dependencies meet the requirements, you can use the swcli check
command to check, and the normal output should be as follows:
⯠swcli check
â
Docker 24.0.7
â
Docker Compose 2.21.0
â
Conda 22.9.0
Launch Starwhale Serverâ
swcli server start
After executing the command, it will pull the Starwhale Server Docker image consistent with the swcli
version and start the Starwhale Server related container services. Finally, it will open the browser http://127.0.0.1:8008 page, where you can log in to the Starwhale Server with the default username starwhale
and password abcd1234
.
When the server is successfully started, you will see a prompt similar to the following:
⯠swcli server start
đ¸ render compose yaml file: /home/tianwei/.starwhale/.server/docker-compose.yaml
đ start Starwhale Server by docker compose
Container starwhale_local-db-1 Created
Container starwhale_local-server-1 Recreate
Container starwhale_local-server-1 Recreated
Container starwhale_local-db-1 Starting
Container starwhale_local-db-1 Started
Container starwhale_local-db-1 Waiting
Container starwhale_local-db-1 Healthy
Container starwhale_local-server-1 Starting
Container starwhale_local-server-1 Started
Starwhale Server is running in the background.
đ stop: swcli server stop
đ check status: swcli server status
đ more compose command: docker compose -f /home/tianwei/.starwhale/.server/docker-compose.yaml sub-command
đĨ visit web:
If there are any issues during the startup process, you can use the docker compose -f ~/.starwhale/.server/docker-compose.yaml logs
command to view the logs, or you can check the service status through the swcli server status
command.
Stop Starwhale Serverâ
swcli server stop
After executing the command, it will stop the previously launched Starwhale Server service.