mirror of
https://github.com/clearml/clearml-server
synced 2025-03-03 10:43:10 +00:00
Update README.md
This commit is contained in:
parent
67c210d9d7
commit
a08722e394
56
README.md
56
README.md
@ -203,39 +203,39 @@ We are constantly updating, improving and adding to the **trains-server**.
|
|||||||
New releases will include new pre-built Docker images.
|
New releases will include new pre-built Docker images.
|
||||||
When we release a new version and include a new pre-built Docker image for it, upgrade as follows:
|
When we release a new version and include a new pre-built Docker image for it, upgrade as follows:
|
||||||
|
|
||||||
* Shut down the docker containers
|
1. Shut down the docker containers
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose down
|
$ docker-compose down
|
||||||
```
|
```
|
||||||
|
|
||||||
* We highly recommend backing up your data directory before upgrading.
|
1. We highly recommend backing up your data directory before upgrading.
|
||||||
|
|
||||||
Assuming your data directory is `/opt/trains`, to archive all data into `~/trains_backup.tgz` execute:
|
Assuming your data directory is `/opt/trains`, to archive all data into `~/trains_backup.tgz` execute:
|
||||||
|
|
||||||
```bash
|
|
||||||
$ sudo tar czvf ~/trains_backup.tgz /opt/trains/data
|
|
||||||
```
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Restore instructions:</summary>
|
|
||||||
|
|
||||||
To restore this example backup, execute:
|
|
||||||
```bash
|
|
||||||
$ sudo rm -R /opt/trains/data
|
|
||||||
$ sudo tar -xzf ~/trains_backup.tgz -C /opt/trains/data
|
|
||||||
```
|
|
||||||
</details>
|
|
||||||
|
|
||||||
* Download the latest `docker-compose.yml` file, either [manually](https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml) or execute:
|
```bash
|
||||||
|
$ sudo tar czvf ~/trains_backup.tgz /opt/trains/data
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
<details>
|
||||||
$ curl https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml -o docker-compose.yml
|
<summary>Restore instructions:</summary>
|
||||||
```
|
|
||||||
|
|
||||||
* Spin up the docker containers, it will automatically pull the latest trains-server build
|
To restore this example backup, execute:
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose up -f docker-compose.yml
|
$ sudo rm -R /opt/trains/data
|
||||||
```
|
$ sudo tar -xzf ~/trains_backup.tgz -C /opt/trains/data
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
1. Download the latest `docker-compose.yml` file, either [manually](https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml) or execute:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ curl https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml -o docker-compose.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
1. Spin up the docker containers, it will automatically pull the latest trains-server build
|
||||||
|
```bash
|
||||||
|
$ docker-compose up -f docker-compose.yml
|
||||||
|
```
|
||||||
|
|
||||||
**\* If something went wrong along the way, check our FAQ: [Docker Upgrade](docs/docker_setup.md#common-docker-upgrade-errors)**
|
**\* If something went wrong along the way, check our FAQ: [Docker Upgrade](docs/docker_setup.md#common-docker-upgrade-errors)**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user