clearml-docs/docs/deploying_clearml/upgrade_server_win.md

50 lines
1.9 KiB
Markdown
Raw Normal View History

2021-05-13 23:48:51 +00:00
---
title: Windows
---
**To upgrade ClearML Server Docker deployment:**
1. Shut down the docker containers.
1. Execute one of the following commands, depending upon the version that is being upgraded:
2022-05-19 06:59:10 +00:00
* Upgrading ClearML Server version:
2021-05-13 23:48:51 +00:00
2024-06-30 06:16:11 +00:00
```
docker-compose -f c:\opt\clearml\docker-compose-win10.yml down
```
2021-05-13 23:48:51 +00:00
* Upgrading from **Trains Server** to **ClearML Server**:
2024-06-30 06:16:11 +00:00
```
docker-compose -f c:\opt\trains\docker-compose-win10.yml down
```
2022-02-13 16:54:59 +00:00
1. If upgrading from **Trains Server** version 0.15 or older, a data migration is required before continuing this upgrade. See instructions [here](clearml_server_es7_migration.md).
2021-05-13 23:48:51 +00:00
2022-02-13 17:40:04 +00:00
1. If upgrading from ClearML Server version older than 1.2, you need to migrate your data before upgrading your server. See instructions [here](clearml_server_mongo44_migration.md).
2022-05-19 06:59:10 +00:00
1. Backing up data is recommended, and if the configuration folder is not empty, backing up the configuration.
2021-05-13 23:48:51 +00:00
:::note
For example, if the configuration is in ``c:\opt\clearml``, then backup ``c:\opt\clearml\config`` and ``c:\opt\clearml\data``.
Before restoring, remove the old artifacts in ``c:\opt\clearml\config`` and ``c:\opt\clearml\data``, and then restore.
:::
1. If upgrading from **Trains Server** to **ClearML Server**, rename `/opt/trains` and its subdirectories to `/opt/clearml`.
1. Download the latest `docker-compose.yml` file.
2024-06-30 06:16:11 +00:00
```
curl https://raw.githubusercontent.com/allegroai/clearml-server/master/docker/docker-compose-win10.yml -o c:\opt\clearml\docker-compose-win10.yml
```
2021-05-13 23:48:51 +00:00
2022-05-19 06:59:10 +00:00
1. Startup ClearML Server. This automatically pulls the latest ClearML Server build.
2021-05-13 23:48:51 +00:00
2024-06-30 06:16:11 +00:00
```
docker-compose -f c:\opt\clearml\docker-compose-win10.yml pull
docker-compose -f c:\opt\clearml\docker-compose-win10.yml up -d
```
2024-07-01 07:07:19 +00:00
If issues arise during your upgrade, see the FAQ page, [How do I fix Docker upgrade errors?](../faq.md#common-docker-upgrade-errors)